next up previous
Next: Up: Previous:

Bellman-Ford Algorithm

*
Accepts negative weights
*
Detects negative cycles
*
Algorithm: Relax edges rippling from source.
At end, if d(v) > d(u) + w(u,v), then negative cycle



\psfig{figure=figures/f18-5.ps}


next up previous
Next: Up: Previous: