Dijkstra's Algorithm for Finding Shortest Paths
In this section, we will learn about Dijkstra's algorithm for finding the shortest paths, consider the process in simple terms, and apply the algorithm by hand to a small network.
The most common algorithm for finding the shortest paths on a network is Dijkstra's algorithm. It was named after the Dutch computer scientist Edsger W. Dijkstra, who constructed it in 1956, but since computing was such a new field at the time, there were so few academic journals dedicated to computing that he did not publish his findings until 1959.
We will first learn about the method in intuitive terms using the small network from Figure 9.5 so that we can understand the ideas behind the approach. This understanding is important because there are many variations of the algorithm and we hope you will learn to adapt it to solve your own problems!
Just like the previous section, we will seek the shortest path from v1 to v2. Since it is...