Deterministic Negative-Weight Shortest Paths in Nearly Linear Time via Path Covers
Bernhard Haeupler, Yonggang Jiang, Thatchaphol Saranurak
Abstract
We present the first deterministic nearly-linear time algorithm for single-source shortest paths with negative edge weights on directed graphs: given a directed graph G with n vertices, m edges whose weights are integers in -W, . . . , W , our algorithm either computes all distances from a source s or reports a negative cycle in Õ(m)•log(nW ) time.
All known near-linear time algorithms for this problem have been inherently randomized [BNW25, BCF23, FHL + 25, LM24], as they crucially rely on low-diameter decompositions.
To overcome this barrier, we introduce a new structural primitive for directed graphs called the path cover. This plays a role analogous to neighborhood covers in undirected graphs [ABCP98], which have long been central to derandomizing algorithms that use low-diameter decomposition in the undirected setting. We believe that path covers will serve as a fundamental tool for the design of future deterministic algorithms on directed graphs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- Deterministic Padded Decompositions and Negative-Weight Shortest PathsJason LiSTOC 2026 · 6 citations
- DAG Projections: Reducing Distance and Flow Problems to DAGsBernhard Haeupler, Yonggang Jiang, Thatchaphol SaranurakSTOC 2026 · 2 citations
Builds on9
- Minimum cost flows, MDPs, and ℓ1-regression in nearly linear time for dense instancesJan van den Brand, Yin Tat Lee, Yang P. Liu, Thatchaphol Saranurak et al.STOC 2021 · 61 citations
- Circulation Control for Faster Minimum Cost Flow in Unit-Capacity GraphsKyriakos Axiotis, Aleksander Madry, Adrian VladuFOCS 2020 · 43 citations
- Negative-Weight Single-Source Shortest Paths in Near-linear TimeAaron Bernstein, Danupon Nanongkai, Christian Wulff-NilsenFOCS 2022 · 24 citations
- Almost-Linear Time Algorithms for Incremental Graphs: Cycle Detection, SCCs, s-t Shortest Path, and Minimum-Cost FlowLi Chen, Rasmus Kyng, Yang P. Liu, Simon Meierhans et al.STOC 2024 · 11 citations
- Clan embeddings into trees, and low treewidth graphsArnold Filtser, Hung LeSTOC 2021 · 11 citations
Related papers
- Negative-Weight Single-Source Shortest Paths in Near-Linear Time: Now Faster!Karl Bringmann, Alejandro Cassis, Nick FischerFOCS 2023 · 7 citations
- Faster Negative-Weight Shortest Paths and Directed Low-Diameter DecompositionsJason Li, Connor Mowry, Satish RaoSODA 2026
- Breaking the Sorting Barrier for Directed Single-Source Shortest PathsRan Duan, Jiayi Mao, Xiao Mao, Xinkai Shu et al.STOC 2025 · 8 citations
- Deterministic Decremental SSSP and Approximate Min-Cost Flow in Almost-Linear TimeAaron Bernstein, Maximilian Probst Gutenberg, Thatchaphol SaranurakFOCS 2021 · 27 citations
- Incremental Shortest Paths in Almost Linear Time via a Modified Interior Point MethodYang P. LiuSTOC 2026 · 1 citation
