English

Negative-Weight Single-Source Shortest Paths in Near-linear Time

Data Structures and Algorithms 2025-05-21 v6

Abstract

We present a randomized algorithm that computes single-source shortest paths (SSSP) in O(mlog8(n)logW)O(m\log^8(n)\log W) time when edge weights are integral and can be negative. This essentially resolves the classic negative-weight SSSP problem. The previous bounds are O~((m+n1.5)logW)\tilde O((m+n^{1.5})\log W) [BLNPSSSW FOCS'20] and m4/3+o(1)logWm^{4/3+o(1)}\log W [AMV FOCS'20]. Near-linear time algorithms were known previously only for the special case of planar directed graphs [Fakcharoenphol and Rao FOCS'01]. In contrast to all recent developments that rely on sophisticated continuous optimization methods and dynamic algorithms, our algorithm is simple: it requires only a simple graph decomposition and elementary combinatorial tools. In fact, ours is the first combinatorial algorithm for negative-weight SSSP to break through the classic O~(mnlogW)\tilde O(m\sqrt{n}\log W) bound from over three decades ago [Gabow and Tarjan SICOMP'89].

Keywords

Cite

@article{arxiv.2203.03456,
  title  = {Negative-Weight Single-Source Shortest Paths in Near-linear Time},
  author = {Aaron Bernstein and Danupon Nanongkai and Christian Wulff-Nilsen},
  journal= {arXiv preprint arXiv:2203.03456},
  year   = {2025}
}
R2 v1 2026-06-24T10:04:42.912Z