English

Bellman-Ford is optimal for shortest hop-bounded paths

Data Structures and Algorithms 2023-02-15 v2 Computational Complexity

Abstract

This paper is about the problem of finding a shortest ss-tt path using at most hh edges in edge-weighted graphs. The Bellman--Ford algorithm solves this problem in O(hm)O(hm) time, where mm is the number of edges. We show that this running time is optimal, up to subpolynomial factors, under popular fine-grained complexity assumptions. More specifically, we show that under the APSP Hypothesis the problem cannot be solved faster already in undirected graphs with non-negative edge weights. This lower bound holds even restricted to graphs of arbitrary density and for arbitrary hO(m)h \in O(\sqrt{m}). Moreover, under a stronger assumption, namely the Min-Plus Convolution Hypothesis, we can eliminate the restriction hO(m)h \in O(\sqrt{m}). In other words, the O(hm)O(hm) bound is tight for the entire space of parameters hh, mm, and nn, where nn is the number of nodes. Our lower bounds can be contrasted with the recent near-linear time algorithm for the negative-weight Single-Source Shortest Paths problem, which is the textbook application of the Bellman--Ford algorithm.

Keywords

Cite

@article{arxiv.2211.07325,
  title  = {Bellman-Ford is optimal for shortest hop-bounded paths},
  author = {Tomasz Kociumaka and Adam Polak},
  journal= {arXiv preprint arXiv:2211.07325},
  year   = {2023}
}