Question: What is the main idea behind the Bellman-Ford algorithm in dynamic programming?
Options:
Correct Answer: To find the shortest path in a graph
Solution:
The Bellman-Ford algorithm is used to find the shortest path from a single source vertex to all other vertices in a weighted graph.