Examveda

What is a common use case of the Bellman-Ford algorithm?

A. To detect cycles in undirected graphs.

B. To find the minimum spanning tree.

C. To find the shortest path in graphs with positive weights only.

D. To find the shortest path in graphs with negative weights.

Answer: Option D


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)