Floyd's Algorithm Base Network Prior [Iter 2] Next [Iter 4] Final Results

Iteration k=3

d[i,j] 1 2 3 4 5
1-3.06.09.012.0
210.0-3.06.09.0
37.010.0-3.08.0
44.07.02.0-4.0
515.018.08.011.0-
Iteration 3. Using k=3 as a potential intermediate node, update the matrix using d(i,j) = min[ d(i,j), (d(i,k) + d(k,j)) ]. Here, cells (1,4), (2,1), (2,4), (5,1), (5,2), and (5,4) are connected using node 3 as an intermediate node. Note that cell (5,2) combines cell (5,3), representing a link (5,3), with cell (3,2), representing a path (3-1-2) created in Iteration 1. Similarly, cell (1,4) combines cell (1,3), a path found in Iteration 2, with cell (3,4), a link. Note that elements in the kth row and column are not updated.
Last Updated: 14 February 2006 / mgm