Question:medium

What is the purpose of Bellman-Ford algorithm?

Show Hint

Bellman-Ford:
• Single Source Shortest Path
• Handles Negative Weights
• Detects Negative Cycles Dijkstra:
• Faster
• Does not handle negative edge weights
Updated On: Jun 25, 2026
  • Detecting single source shortest paths in a weighted graph with negative weights
  • Detecting all pairs shortest paths in a weighted graph with negative weights
  • Detecting single source shortest paths in undirected graph without negative weights
  • Detecting all pairs shortest paths in a weighted graph without negative weights
Show Solution

The Correct Option is A

Solution and Explanation

Was this answer helpful?
0