Technology

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

Verified sources