Dijkstra Algorithm
Dijkstra Algorithm
NRP : 04211640000032
A man who is living in Sidoarjo is going to ITS to attend Research Operation class. There are many ways
to get there,but the man is confused which way should the man takes. Help the man find the shortest
way to get to ITS by using dijkstra algorithm.
8.9
5
2
7.4
8.7 9.8 7
1 8.6
11 10
11 0.85
2.1
4.8 11
7
1.9
12
Iteration #1
Iterarion #2
Iteration #4
Iterarion #5
Iteration #6
Iteration #7
Iteration #8
From the calculation above, the shortest way to get to ITS (node 12) from home (node 1) is : 1 – 2 –
4 – 6 – 8 – 9 – 10 – 11 – 12