Stanford CS161 Lecture 11: Dijkstra, Bellman-Ford, and Two Orders of Relaxation
Dijkstra finalizes the minimum estimate and relies on nonnegative weights; Bellman-Ford repeatedly relaxes every edge, spending O(nm) to support negative edges and detect a negative cycle reachable from the source.