Shortest path problem: Difference between revisions

Content deleted Content added
Line 21:
 
==Algorithms==
Several well -known algorithms exist for solving this problem and its variants.
* [[Dijkstra's algorithm]] solves the single-source shortest path problem with only non-negative edge weights.
* [[Bellman–Ford algorithm]] solves the single-source problem if edge weights may be negative.