next up previous
Next: Base Case Up: CSC364 Tutorial Week 2 Previous: Problem Set 1

Alternative Algorithm for Shortest Path Problem

\( D \left[u, v, k\right] = \) min weight of a simple path from $u$ to $v$ using nodes in {1, 2, ..., $k$} \( \tilde{D} \left[u, v, k\right] = \min \left\{ D \left[u, v, k-1\right], D \left[u, k, k-1\right] + \tilde{D} \left[k, v, k-1\right] \right\} \)

That is, the new shortest path is either the previous shortest path or the shortest path that includes the node that we have just added to our available list.



Subsections

Raymond Fingas 2002-01-18