Talk:Bellman–Ford algorithm

This is an old revision of this page, as edited by 128.112.139.194 (talk) at 22:18, 7 October 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Assembly code has no place in algorithm articles; it doesn't help explain the algorithm at all.

I removed the license notice and the attribution to "JellyWorld" from the C code. Fortunately, the license was GFDL-compatible, and it permitted the attribution to be removed.

RSpeer 17:46, Apr 21, 2005 (UTC)

I changed the problem from weighted graph to weighted *digraph* because Bellman Ford fails spectacularly on undirected graphs: If there is a negative weight edge, say {u, v}, then Bellman-Ford will get stuck updating u and v foreover, even if there is no negative weight cycle. This subtlety may be worth mentioning in the main article. To find shortest paths in undirected graphs with negative edge weights, you can reduce the problem to weighted nonbipartite matching.