English

Breaking the Bellman-Ford Shortest-Path Bound

Data Structures and Algorithms 2024-11-01 v1

Abstract

In this paper we give a single-source shortest-path algorithm that breaks, after over 65 years, the O(nm)O(n \cdot m) bound for the running time of the Bellman-Ford-Moore algorithm, where nn is the number of vertices and mm is the number of arcs of the graph. Our algorithm converts the input graph to a graph with nonnegative weights by performing at most min(2n,2m/logn)\min(2 \cdot \sqrt{n},2 \cdot \sqrt{m/\log n}) calls to a modified version of Dijkstra's algorithm, such that the shortest-path trees are the same for the new graph as those for the original. When Dijkstra's algorithm is implemented using Fibonacci heaps, the running time of our algorithm is therefore O(nm+nmlogn)O(\sqrt{n} \cdot m + n \cdot \sqrt{m \log n}).

Keywords

Cite

@article{arxiv.2410.23383,
  title  = {Breaking the Bellman-Ford Shortest-Path Bound},
  author = {Amr Elmasry},
  journal= {arXiv preprint arXiv:2410.23383},
  year   = {2024}
}
R2 v1 2026-06-28T19:41:58.277Z