Question: In which scenario would you prefer the Bellman-Ford algorithm over Dijkstra\'s algorithm?
Options:
Correct Answer: When there are negative weight edges
Solution:
You would prefer the Bellman-Ford algorithm when the graph contains negative weight edges, as Dijkstra\'s algorithm cannot handle them.