Dijkstra’s Shortest Path

Karl Heinz Jeron • 2015

Performance with a movable sculpture about Dijkstra's shortest path algorithm

The Dijkstra algorithm solves the single-source shortest path problem.
For a given source node in the graph, the algorithm finds the shortest path between that node and every other. It can also be used for finding the shortest paths from a single node to a single destination node by stopping the algorithm once the shortest path to the destination node has been determined. For example, if the nodes of the graph represent cities and edge path costs represent driving distances between pairs of cities connected by a direct road, Dijkstra’s algorithm can be used to find the shortest route between one city and all other cities. As a result, the shortest path algorithm is widely used in network routing protocols.