Shortest Path Algorithms
Shortest path algorithms find routes through a network that minimize total distance, travel time, or another cost assigned to its connections.
A network can be represented as a graph, with vertices for locations and weighted edges for connections; the shortest path minimizes the sum of its edge weights. Dijkstra’s algorithm, published in 1959, finds shortest paths from a starting vertex when all edge weights are nonnegative. The Bellman–Ford algorithm also handles negative edge weights and can detect negative-weight cycles reachable from the starting vertex. These methods underpin applications such as road-route planning and computer-network routing.
Where this leads
Graph Theory →
Shortest path algorithms solve graph-theory problems by finding minimum-cost paths between vertices.
Technology
The Internet →
OSPF, a routing protocol used in Internet networks, uses Dijkstra’s algorithm to calculate shortest paths through a network.
Slime Molds →
Experiments showing Physarum polycephalum connecting food sources through a maze provide a biological example of finding a shortest path.