Bellman–Ford algorithm: Difference between revisions

Content deleted Content added
FlaBot (talk | contribs)
m warnfile Modifying:de
Ecb29 (talk | contribs)
m Should be using wikicode for pseudocode
Line 1:
{{wikify}}
 
The '''Bellman-Ford algorithm''' computes single-source shortest paths in a [[weighted graph]] (where some of the [[edge (graph theory)|edge]] weights may be negative). [[Dijkstra's algorithm]] accomplishes the same problem with a lower running time, but requires edges to be non-negative. Thus, Bellman-Ford is usually used only when there are negative edge weights.