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 vertices, 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 steps. This improves an earlier lower bound of Eppstein of . Given that a non-adaptive randomized variant of Bellman-Ford with at most 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.
Keywords
Cite
@article{arxiv.2402.10343,
title = {Non-adaptive Bellman-Ford: Yen's improvement is optimal},
author = {Jialu Hu and László Kozma},
journal= {arXiv preprint arXiv:2402.10343},
year = {2025}
}
Comments
Revised and extended version. Main result now proved in alternative way, as V1 proof was faulty. Sections 3 and 4, and Thm 3.1 are new