Negative-Weight Single-Source Shortest Paths in Near-linear Time
Aaron Bernstein, Danupon Nanongkai, Christian Wulff-Nilsen
TL;DR
The paper resolves the classic problem of single-source shortest paths in directed graphs with integral, potentially negative weights by presenting a simple, combinatorial Las Vegas algorithm with near-linear running time: $O(m\log^8(n)\log W)$. Central to the approach are a recursive scaling framework (ScaleDown) and a Low-Diameter Decomposition (LDD) that partitions the graph into small-diameter SCCs, together with price-function transformations and a black-box reduction to handle negative cycles. The combination enables efficient non-negativity adjustments and a final ElimNeg phase to guarantee non-negative edge weights, allowing a final Dijkstra run to produce a shortest-path tree when no negative cycle exists. This yields near-linear performance without relying on advanced continuous optimization or dynamic methods, marking a significant simplification and strengthening of negative-weight SSSP techniques and offering a path toward broader applications in fundamental graph problems.
Abstract
We present a randomized algorithm that computes single-source shortest paths (SSSP) in $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 $\tilde O((m+n^{1.5})\log W)$ [BLNPSSSW FOCS'20] and $m^{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 $\tilde O(m\sqrt{n}\log W)$ bound from over three decades ago [Gabow and Tarjan SICOMP'89].
