Start Video
Instructor: Lawrence Landweber,Jun Murai
No. 13 10/15/1999
LIST
PREV
[8/16]
NEXT
Shortest Path First Algorithm
M = {s}
for each n in N - {s}
C(n) = l(s,n) (0 if s not dir conn to n)
while (N =/ M)
-M = M union {w} such that C(w) is the
minimum for all w in (N - M)
-for each n in (N - M)
C(n) = MIN (C(n), C(w) + l(w,n))