Title: Dijkstra's Shortest Path Algorithm
1Dijkstra's Shortest Path Algorithm
- Find shortest path from s to t.
3
2
24
9
s
18
14
6
2
6
4
19
30
11
5
15
5
6
16
20
t
7
44
2Dijkstra's Shortest Path Algorithm
S PQ s, 2, 3, 4, 5, 6, 7, t
?
?
3
2
24
0
9
s
18
?
14
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
distance label
?
3Dijkstra's Shortest Path Algorithm
S PQ s, 2, 3, 4, 5, 6, 7, t
delmin
?
?
3
2
24
0
9
s
18
?
14
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
distance label
?
4Dijkstra's Shortest Path Algorithm
S s PQ 2, 3, 4, 5, 6, 7, t
decrease key
?
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
distance label
15
?
X
5Dijkstra's Shortest Path Algorithm
S s PQ 2, 3, 4, 5, 6, 7, t
delmin
?
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
distance label
15
?
X
6Dijkstra's Shortest Path Algorithm
S s, 2 PQ 3, 4, 5, 6, 7, t
?
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
15
?
X
7Dijkstra's Shortest Path Algorithm
S s, 2 PQ 3, 4, 5, 6, 7, t
decrease key
?
33
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
15
?
X
8Dijkstra's Shortest Path Algorithm
S s, 2 PQ 3, 4, 5, 6, 7, t
?
33
X
?
9
X
3
2
24
0
9
delmin
s
18
14
?
14
X
6
2
6
?
4
?
19
30
11
5
15
5
6
16
20
t
7
44
?
15
?
X
9Dijkstra's Shortest Path Algorithm
S s, 2, 6 PQ 3, 4, 5, 7, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
44
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
15
?
X
10Dijkstra's Shortest Path Algorithm
S s, 2, 6 PQ 3, 4, 5, 7, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
44
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
15
?
delmin
X
11Dijkstra's Shortest Path Algorithm
S s, 2, 6, 7 PQ 3, 4, 5, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
35
44
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
59
15
?
X
X
12Dijkstra's Shortest Path Algorithm
S s, 2, 6, 7 PQ 3, 4, 5, t
delmin
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
35
44
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
59
15
?
X
X
13Dijkstra's Shortest Path Algorithm
S s, 2, 3, 6, 7 PQ 4, 5, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
35
34
44
X
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
51
59
15
?
X
X
X
14Dijkstra's Shortest Path Algorithm
S s, 2, 3, 6, 7 PQ 4, 5, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
35
34
44
X
X
4
?
19
X
30
11
5
15
5
6
16
delmin
20
t
7
44
?
51
59
15
?
X
X
X
15Dijkstra's Shortest Path Algorithm
S s, 2, 3, 5, 6, 7 PQ 4, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
45
35
34
44
X
X
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
51
50
59
15
?
X
X
X
X
16Dijkstra's Shortest Path Algorithm
S s, 2, 3, 5, 6, 7 PQ 4, t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
45
35
34
44
X
X
X
4
?
19
X
30
11
5
delmin
15
5
6
16
20
t
7
44
?
51
50
59
15
?
X
X
X
X
17Dijkstra's Shortest Path Algorithm
S s, 2, 3, 4, 5, 6, 7 PQ t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
45
35
34
44
X
X
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
51
50
59
15
?
X
X
X
X
18Dijkstra's Shortest Path Algorithm
S s, 2, 3, 4, 5, 6, 7 PQ t
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
45
35
34
44
X
X
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
delmin
51
50
59
15
?
X
X
X
X
19Dijkstra's Shortest Path Algorithm
S s, 2, 3, 4, 5, 6, 7, t PQ
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
45
35
34
44
X
X
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
51
50
59
15
?
X
X
X
X
20Dijkstra's Shortest Path Algorithm
S s, 2, 3, 4, 5, 6, 7, t PQ
32
?
33
X
X
?
9
X
3
2
24
0
9
s
18
14
?
14
X
6
2
6
?
45
35
34
44
X
X
X
4
?
19
X
30
11
5
15
5
6
16
20
t
7
44
?
51
50
59
15
?
X
X
X
X