Randomized O(mn) Bellman-Ford from Fineman and the Boilermakers
Abstract
A classical algorithm by Bellman and Ford from the 1950's computes shortest paths in weighted graphs on n vertices and m edges with possibly negative weights in O(mn) time. Indeed, this algorithm is taught regularly in undergraduate Algorithms courses. In 2023, after nearly 70 years, Fineman fineman2024single developed an O(m n8/9) expected time algorithm for this problem. Huang, Jin and Quanrud improved on Fineman's startling breakthrough by providing an O(m n4/5 ) time algorithm. This paper builds on ideas from those results to produce an O(mn) expected time algorithm. The simple observation that distances can be updated with respect to the reduced costs for a price function in linear time is key to the improvement. This almost immediately improves the previous work. To produce the final bound, this paper provides recursive versions of Fineman's structures.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.