Abstract
For decades, the Bellman-Ford algorithm has been the textbook solution for finding shortest paths with a limit on the number of edges (hops), running in $O(hm)$ time. While recent breakthroughs have found near-linear time algorithms for the standard shortest path problem, this paper proves that Bellman-Ford is actually optimal for the hop-bounded version. Using fine-grained complexity, the authors show that any significant improvement over Bellman-Ford would disprove major long-standing hypotheses in computer science.
Introduction
The paper focuses on the shortest hop-bounded path problem: given a graph, find the shortest path between two nodes $s$ and $t$ that uses at most $h$ edges. In a standard undergraduate algorithms course, the Bellman-Ford algorithm solves the Single-Source Shortest Path (SSSP) problem in $O(nm)$ time. If the algorithm is stopped after $h$ iterations, it solves the hop-bounded version in $O(hm)$ time.
Recently, the research community achieved a "near-linear" time algorithm for SSSP in graphs with negative weights. This raised a natural question: Can we also beat the $O(hm)$ barrier for hop-bounded paths? This paper provides a definitive "no" (conditionally), showing that the hop constraint makes the problem fundamentally harder than the standard version.
Methods and Reductions
The authors employ fine-grained complexity reductions. Instead of proving an absolute lower bound, they show that if you could solve the hop-bounded path problem faster than $O(hm)$, you could also solve other famous "hard" problems faster than currently thought possible. They use two primary hardness assumptions:
- The APSP Hypothesis: The assumption that All-Pairs Shortest Paths cannot be solved in truly sub-cubic ($n^{3-\epsilon}$) time.
- The Min-Plus Convolution Hypothesis: A stronger assumption related to sequence processing conjectured to require quadratic ($n^{2-\epsilon}$) time.
To establish these bounds, the authors construct elaborate "gadget" graphs. For the APSP reduction, they transform an instance of the Negative Triangle problem into a hop-bounded path problem.
Mapping the Parameter Space
The authors map out the relationship between the number of nodes ($n$), edges ($m$), and hops ($h$). They show that Bellman-Ford is optimal regardless of whether the graph is sparse or dense, or whether the hop limit is small or large.
The paper uses the APSP hypothesis to cover the "low-hop" regime ($h \leq \sqrt{m}$) and the stronger Min-Plus Convolution hypothesis to cover the "high-hop" regime ($h > \sqrt{m}$). This dual approach ensures there are no "easy" corners in the problem's parameter space.
Key Results
- Conditional Optimality: The paper proves that there is no $O(h^{1-\epsilon}m)$ or $O(hm^{1-\epsilon})$ time algorithm for any $\epsilon > 0$, unless the APSP or Min-Plus Convolution hypotheses are false.
- Tightness: The $O(hm)$ bound is shown to be tight (up to subpolynomial factors) for the entire range of parameters $h, m,$ and $n$.
- Undirected/Non-negative Hardness: The lower bounds hold even for undirected graphs with only non-negative weights, closing the door on finding a "Dijkstra-like" speedup for the hop-bounded version.
Conclusion
This work highlights a fascinating divergence in algorithm theory. While we've found ways to speed up global shortest paths, the simple addition of a "local" constraint (the hop count) anchors the complexity to the classic 1950s-era Bellman-Ford performance. Future work remains to explore whether approximate solutions can offer better performance, as these bounds apply to exact shortest paths.
Summary updated