Question: In which scenario would you prefer using Dijkstra\'s algorithm over the Bellman-Ford algorithm?
Options:
Correct Answer: When the graph has non-negative weights
Solution:
Dijkstra\'s algorithm is preferred when the graph has non-negative weights, as it is more efficient in such cases compared to Bellman-Ford.