Examveda

How does the Bellman-Ford algorithm handle negative edge weights?

A. It ignores them.

B. It transforms negative weights into positive weights.

C. It cannot handle them.

D. It can handle them and detect negative weight cycles.

Answer: Option D


Join The Discussion

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