Single-Source Shortest Paths with Negative Real Weights in Õ(mn8/9) Time
Jeremy T. Fineman
摘要
This paper presents a randomized algorithm for the problem of single-source shortest paths on directed graphs with real (both positive and negative) edge weights. Given an input graph with n vertices and m edges, the algorithm completes in Õ(mn 8/9 ) time with high probability. For real-weighted graphs, this result constitutes the first asymptotic improvement over the classic O(mn)-time algorithm variously attributed to Shimbel, Bellman, Ford, and Moore. w(s, u) = 0 to the graph, and finally solve SSSP from the super source s in the augmented graph. Johnson's algorithm [12] uses this same graph augmentation with S = V .
Simplifying assumptions (without loss of generality). We shall make the following assumptions about the input graph throughout. (1) If (u, v) ∈ E and w(u, v) < 0, then u has only one outgoing edge; thus, there are at most n negative-weight edges in the graph. 2 (2) Every vertex has degree at most O(m/n); thus, a subgraph on n/r vertices has O(m/r) edges. 3 These assumptions are without loss of generality as they can be obtained from an arbitrary input graph via a simple graph transformation without increasing the size of the graph by more than a constant factor and without changing distances between vertices in the original vertex set.
We shall also assume that m ≥ 2n to keep some of the statements of performance bounds more concise. A constant of at least two here also implies that the number of edges is dominated by the number of edges with nonnegative weight.
Hop-limited shortest paths. It is a simple exercise to construct a SSSP algorithm that runs in Õ(hm) time when shortest paths are limited to h ≥ 1 negative-weight edges or "hops." (Section 2 introduces corresponding notation and briefly summarizes such an algorithm.) The novel algorithm in this paper applies hop-limited SSSP as a subroutine.
As with most of the integer-weight algorithms for SSSP, the algorithm in this paper relies on price functions introduced by Johnson [12] to transform the graph to an equivalent one without negative weights; then Dijkstra's algorithm can be used to solve the SSSP problem on the reweighted graph. In more detail, a price function is a function φ : V → R. Given a price function φ, define
Modifying the weights in this way has the following key properties [12]: (1) every cycle C has the same weight in both G and G φ , so negative-weight cycles are preserved, and (2) a path p is a shortest path in G φ if and only if it is a shortest path in G. More precisely, all u-to-v paths p satisfy w φ (p) = w(p) + φ(u)φ(v); if p is a cycle then φ(u) = φ(v) and hence w φ (p) = w(p). Price functions also compose in the natural way, i.e., (w φ 1 ) φ 2 (u, v) = w φ 1 +φ 2 (u, v).
We call φ or w φ a valid reweighting if w φ does not cause any edge weights to become negative. That is, if ∀e ∈ E((w(e) ≥ 0) =⇒ (w φ (e) ≥ 0)). We say that φ or w φ eliminates a negative edge e ∈ E if w(e) < 0 and w φ (e) ≥ 0.
Johnson [12] shows that (assuming no negative-weight cycles) the problem of eliminating all negative-weight edges can be accomplished by setting φ(v) = dist(V, v). Using Bellman-Ford to solve the super-source problem, the running time is O(mn). When there are k ≪ n negative-weight edges, applying hop-limited SSSP is better, giving a running time of Õ(km).
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper8
- Deterministic Padded Decompositions and Negative-Weight Shortest PathsJason LiSTOC 2026 · 被引用 6 次
- Faster single-source shortest paths with negative real weights via proper hop distanceYufan Huang, Peter Jin, Kent QuanrudSODA 2025 · 被引用 5 次
- Shortcutting for Negative-Weight Shortest PathsGeorge Z. Li, Jason Li, Satish Rao, Junkai ZhangSTOC 2026 · 被引用 3 次
- Faster negative length shortest paths by bootstrapping hop reducersYufan Huang, Peter Jin, Kent QuanrudSODA 2026 · 被引用 2 次
- Sumsets, 3SUM, Subset Sum: Now for Real!Nick FischerSODA 2025 · 被引用 1 次
它引用的顶会 Paper3
- Bipartite Matching in Nearly-linear Time on Moderately Dense GraphsJan van den Brand, Yin Tat Lee, Danupon Nanongkai, Richard Peng 等FOCS 2020 · 被引用 72 次
- Circulation Control for Faster Minimum Cost Flow in Unit-Capacity GraphsKyriakos Axiotis, Aleksander Madry, Adrian VladuFOCS 2020 · 被引用 43 次
- Negative-Weight Single-Source Shortest Paths in Near-linear TimeAaron Bernstein, Danupon Nanongkai, Christian Wulff-NilsenFOCS 2022 · 被引用 24 次
相关 Paper
- Parallel Exact Shortest Paths in Almost Linear Work and Square Root DepthNairen Cao, Jeremy T. FinemanSODA 2023 · 被引用 4 次
- Breaking the Sorting Barrier for Directed Single-Source Shortest PathsRan Duan, Jiayi Mao, Xiao Mao, Xinkai Shu 等STOC 2025 · 被引用 8 次
- A Randomized Algorithm for Single-Source Shortest Path on Undirected Real-Weighted GraphsRan Duan, Jiayi Mao, Xinkai Shu, Longhui YinFOCS 2023 · 被引用 6 次
- From Hop Reduction to Sparsification for Negative Length Shortest PathsKent Quanrud, Navid TajkhorshidSTOC 2026 · 被引用 1 次
- Exact Shortest Paths with Rational Weights on the Word RAMAdam Karczmarz, Wojciech Nadara, Marek SokolowskiSODA 2024 · 被引用 1 次
