Non-adaptive Bellman-Ford: Yen's improvement is optimal
Abstract: The Bellman-Ford algorithm for single-source shortest paths repeatedly updates tentative distances in an operation called relaxing an edge. In several important applications a non-adaptive (oblivious) implementation is preferred, which means fixing the entire sequence of relaxations upfront, independently of the edge-weights. Such an implementation performs, in a dense graph on $n$ vertices, $(1 + o(1))n3$ relaxations. An improvement by Yen from 1970 reduces the number of relaxations by a factor of two. We show that no further constant-factor improvements are possible, and every non-adaptive deterministic algorithm based on relaxations must perform $(\frac{1}{2} - o(1))n3$ steps. This improves an earlier lower bound of Eppstein of $(\frac{1}{6} - o(1))n3$. Given that a non-adaptive randomized variant of Bellman-Ford with at most $(\frac{1}{3} + o(1))n3$ relaxations (with high probability) is known, our result implies a strict separation between deterministic and randomized strategies, answering an open question of Eppstein. On the complexity side, we show that deciding whether a given relaxation sequence is guaranteed to yield correct distances is NP-hard, even with the complete graph as input.
- Randomized speedup of the Bellman–Ford algorithm. In 2012 Proceedings of the Ninth Workshop on Analytic Algorithmics and Combinatorics (ANALCO), pages 41–47. SIAM, 2012.
- Richard Bellman. On a routing problem. Quarterly of applied mathematics, 16(1):87–90, 1958.
- David Eppstein. Lower bounds for non-adaptive shortest path relaxation. In Algorithms and Data Structures - 18th International Symposium, WADS 2023, Proceedings, volume 14079 of Lecture Notes in Computer Science, pages 416–429. Springer, 2023.
- Lester Randolph Ford. Network flow theory. 1956.
- Charles Hedrick. Routing Information Protocol, June 1988. RFC 1058.
- Edward F. Moore. The shortest path through a maze. In Proc. of the International Symposium on the Theory of Switching, pages 285–292. Harvard University Press, 1959.
- Network routing: algorithms, protocols, and architectures. Morgan Kaufmann, 2017.
- Jin Y. Yen. An algorithm for finding shortest routes from all source nodes to a given destination in general networks. Quarterly of applied mathematics, 27(4):526–530, 1970.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.