0 | 3 | INF | INF | INF |
---|
7 | INF | INF | INF | INF |
INF | INF | INF | INF | INF |
INF | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (0 , 1) ,距離: 3
0 | 3 | 4 | INF | INF |
---|
7 | 6 | INF | INF | INF |
INF | INF | INF | INF | INF |
INF | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (0 , 2) ,距離: 4
0 | 3 | 4 | 6 | INF |
---|
7 | 6 | 8 | INF | INF |
INF | INF | INF | INF | INF |
INF | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (1 , 1) ,距離: 6
0 | 3 | 4 | 6 | INF |
---|
7 | 6 | 8 | INF | INF |
INF | 13 | INF | INF | INF |
INF | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (0 , 3) ,距離: 6
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
INF | 13 | INF | INF | INF |
INF | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (1 , 0) ,距離: 7
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | INF | INF | INF |
INF | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (2 , 0) ,距離: 8
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | INF | INF | INF |
10 | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (1 , 2) ,距離: 8
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | 13 | INF | INF |
10 | INF | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (3 , 0) ,距離: 10
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | 13 | INF | INF |
10 | 13 | INF | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (2 , 2) ,距離: 13
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | 13 | 18 | INF |
10 | 13 | 17 | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (3 , 1) ,距離: 13
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | 13 | 18 | INF |
10 | 13 | 17 | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (2 , 1) ,距離: 13
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | INF |
8 | 13 | 13 | 18 | INF |
10 | 13 | 17 | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (1 , 3) ,距離: 15
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | INF |
10 | 13 | 17 | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (0 , 4) ,距離: 15
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | INF |
10 | 13 | 17 | INF | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (3 , 2) ,距離: 17
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | INF |
10 | 13 | 17 | 19 | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (2 , 3) ,距離: 18
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | 21 |
10 | 13 | 17 | 19 | INF |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (3 , 3) ,距離: 19
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | 21 |
10 | 13 | 17 | 19 | 24 |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (2 , 4) ,距離: 21
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | 21 |
10 | 13 | 17 | 19 | 24 |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (3 , 4) ,距離: 24
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | 21 |
10 | 13 | 17 | 19 | 24 |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (1 , 4) ,距離: 24
0 | 3 | 4 | 6 | 15 |
---|
7 | 6 | 8 | 15 | 24 |
8 | 13 | 13 | 18 | 21 |
10 | 13 | 17 | 19 | 24 |
透過綠色這格更新旁邊的紅色格ㄉ最短路徑,再從所有格子中挑選未走過且路徑最短者繼續尋找 ,即格子: (1 , 4) ,距離: 24