Description:

How it works?:

  • Maintain a set of explored nodes S and the shortest distance to get there
  • Example:
    • Explore A, distance to B C D
    • Explore the shortest neighbor of A, B, then note the neighbors and their distance only if they are shorter than the know distance
ABCDEF
0
X359
X53+43+7
X5+23+10
X5+2+25+2+2