Fast undirected graph shortest path algorithm runs almost linearly
Linear Single-Source Shortest Path, Almost
Data Structures and Algorithms
Summary
Finding the shortest path from one point to all others in a map or network can be slow when the network is very large. This paper presents a new method that speeds up this task dramatically for undirected graphs with distances that are never negative. The method almost always finishes and gives exact shortest paths, using an expected time that grows nearly linearly with the network size. The running time does not depend on how wildly distances vary, which is a common difficulty in such problems.
What this means in practice
- •For network schedulers: Compute exact shortest paths quickly to optimize routing in large undirected networks with varied link costs.
- •For robotics navigation teams: Plan shortest paths efficiently on undirected maps with nonnegative travel costs for better autonomous movement.
Authors
Iman Gholami, MohammadTaghi Hajiaghayi
Abstract
We give a comparison-addition algorithm for single-source shortest paths in undirected graphs with nonnegative real edge lengths. For each input with $n$ vertices and $m$ edges, its expected running time is $O(m+n\log\log\log n)$. It terminates almost surely. Every terminating run returns exact distances and a shortest-path tree on the reachable vertices. The bound is independent of the ratio of edge lengths and is linear whenever $m=Ω(n\log\log\log n)$.