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