Dijkstra’s Algorithm
Dijkstra’s algorithm finds shortest paths through a network by repeatedly choosing the nearest unsettled node and updating routes to its neighbors.
Dutch computer scientist Edsger W. Dijkstra devised the algorithm in 1956 and published it in 1959. It computes shortest paths from a starting node in a graph whose edge weights are nonnegative, with weights representing costs such as distance or travel time. At each step, it selects the unsettled node with the smallest tentative distance, finalizes that distance, and checks whether routes through it improve the estimates for neighboring nodes. The algorithm is used in network routing, including the Open Shortest Path First (OSPF) protocol.
Where this leads
Graph Theory →
Dijkstra’s algorithm solves a shortest-path problem in graph theory, treating locations or network devices as vertices and their connections as weighted edges.
Technology
The Internet →
OSPF, a routing protocol used in Internet Protocol networks, uses Dijkstra’s algorithm to calculate shortest-path routing trees.
Mathematical Optimization →
Dijkstra’s algorithm solves a shortest-path optimization problem in graphs whose edge weights are nonnegative.