Technology

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

Verified sources