Question 8
Which of the following is/are always true about the Bellman-Ford algorithm?
I. It can not detect negative weight cycles in graph.
II. It works correctly if the graph has negative edge weights but does not have negative weight cycles.
III. It finds the shortest paths from a single source vertex to all other vertices in the graph.
Only statement I and II are correct
Only statement I and III are correct
Only statement II and III are correct
All statements are correct
All statements are incorrect