TL;DR
This paper proves that the classic Bellman-Ford algorithm's $O(hm)$ time complexity for finding shortest paths with at most $h$ edges is conditionally optimal. Using fine-grained complexity assumptions, the authors demonstrate that no significantly faster algorithm exists, even for undirected graphs with non-negative edge weights, closing a long-standing open question.
What Problem Does This Paper Address?
The problem of finding a shortest path between two nodes ($s$ and $t$) in a graph, with the constraint that the path can use at most a specific number of edges ($h$), is a fundamental problem in graph theory. While the Bellman-Ford algorithm can solve this "hop-bounded shortest path" problem in $O(hm)$ time (where $m$ is the number of edges), it has been an open question whether this time complexity is truly optimal or if faster algorithms exist. This is particularly intriguing because other shortest path problems, like the general Single-Source Shortest Paths (SSSP) problem with negative edge weights, have seen significant algorithmic improvements over Bellman-Ford's $O(nm)$ runtime. This paper aims to settle the question of whether similar improvements are possible for the hop-bounded variant.
Methods
The core of this paper lies in its use of fine-grained complexity assumptions to establish lower bounds. Specifically, the authors leverage two well-known hypotheses:
- APSP Hypothesis: This hypothesis suggests that the All-Pairs Shortest Paths (APSP) problem cannot be solved in truly subcubic time ($O(n^{3-\epsilon})$).
- Min-Plus Convolution Hypothesis: This hypothesis posits that the Min-Plus Convolution problem cannot be solved in truly subquadratic time ($O(n^{2-\epsilon})$).
The authors construct clever reductions from these hypothesized hard problems to the hop-bounded shortest path problem. A reduction means showing that if you could solve the hop-bounded shortest path problem significantly faster than $O(hm)$, you could also solve the APSP or Min-Plus Convolution problem faster than their conjectured lower bounds, which would contradict these hypotheses.
- Reduction from Negative Triangle (under APSP Hypothesis): They transform an instance of the "Negative Triangle" problem (which is known to be equivalent to APSP) into a graph where finding a shortest hop-bounded path reveals the existence of a negative triangle. This reduction establishes a lower bound for graphs with specific densities and hop bounds related to $\sqrt{m}$.
- Reduction from Common Max-Plus Convolution Upper Bound (under Min-Plus Convolution Hypothesis): They reduce a variant of the Min-Plus Convolution problem to the hop-bounded shortest path problem. This reduction is more general and allows them to cover a wider range of graph densities and hop bounds, ultimately proving the $O(hm)$ optimality for the entire parameter space.
The constructions involve creating specific graph structures with carefully chosen edge weights and node configurations to encode the information from the source problems.
Datasets
Not discussed in the paper. The paper focuses on theoretical hardness results and algorithmic lower bounds, not empirical evaluation on specific datasets.
Key Insights and Ideas
- The $O(hm)$ bound is tight: The most significant insight is the definitive proof that the $O(hm)$ runtime of Bellman-Ford for hop-bounded shortest paths is conditionally optimal. This settles a long-standing open question in the field.
- Fine-grained complexity is powerful: The paper showcases the effectiveness of using fine-grained complexity assumptions (like APSP and Min-Plus Convolution Hypotheses) to derive tight lower bounds for fundamental algorithmic problems.
- Undirected, non-negative weights are still hard: Surprisingly, the hardness results hold even for the simpler case of undirected graphs with non-negative edge weights, which are typically easier to handle than directed graphs with negative weights. This implies that the "hop-bound" constraint is the primary source of complexity.
- Parameter space coverage: The authors meticulously cover the entire parameter space of graph density ($n$ vs. $m$) and hop bound ($h$ vs. $m$), demonstrating that the $O(hm)$ bound is optimal across the board, up to subpolynomial factors.
Key Results
- Theorem 1 (under APSP Hypothesis): There is no $O(h^{1-\epsilon}m)$ or $O(hm^{1-\epsilon})$ time algorithm for finding shortest $h$-hop-bounded paths in undirected graphs with non-negative edge weights, even for graphs with density $n = \Theta(\sqrt{m})$ and hop bounds $h = \Theta(m^\eta)$ for $\eta \in (0, 1/2]$.
- Corollary 2: Extends Theorem 1 to sparser graphs with $n = \Theta(m^\nu)$ for $\nu \in [1/2, 1]$.
- Theorem 3 (under Min-Plus Convolution Hypothesis): There is no $O(h^{1-\epsilon}m)$ or $O(hm^{1-\epsilon})$ time algorithm for the problem, even for graphs with density $n = \Theta(m^\eta)$ and hop bounds $h = \Theta(m^\eta)$ for $\eta \in [1/2, 1]$. This result covers the remaining parameter space.
- Combined Corollaries: The results collectively show that the $O(hm)$ bound is optimal for all relevant parameter ranges of density and hop bounds.
Limitations and Future Work
- Conditional Optimality: The lower bounds are conditional on the truth of the APSP and Min-Plus Convolution Hypotheses. While these are widely believed, they are not proven.
- Subpolynomial Factors: The results are optimal "up to subpolynomial factors." This means there might exist algorithms that are slightly faster by a factor that depends on $n$ or $m$ in a very slow-growing way (e.g., $O(\log n)$ or $O(\log m)$).
- Future Work: The paper implicitly suggests that further research might focus on understanding the exact trade-offs between $h$, $m$, and $n$ in more detail, or exploring whether different computational models (beyond the word RAM) might allow for faster algorithms. The contrast with recent near-linear time algorithms for other SSSP problems also leaves room for exploring if any specific aspects of those algorithms could be adapted, even if the overall complexity remains $O(hm)$.
Summary updated