Directed Shortest Paths via Approximate Cost Balancing
James B. Orlin, László A. Végh
Abstract
We present an O(nm) algorithm for all-pairs shortest paths computations in a directed graph with n nodes, m arcs, and nonnegative integer arc costs. This matches the complexity bound attained by Thorup [26] for the all-pairs problems in undirected graphs. Our main insight is that shortest paths problems with approximately balanced directed cost functions can be solved similarly to the undirected case. Our algorithm starts with an preprocessing step that finds a 3-min-balanced reduced cost function. Using these reduced costs, every shortest path query can be solved in O(m) time using an adaptation of Thorup's component hierarchy method. The balancing result is of independent interest, and gives the best currently known approximate balancing algorithm for the problem.
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 papers1
Ask how each one uses itRelated papers
- Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space BoundsMaximilian Probst Gutenberg, Christian Wulff-NilsenSODA 2020 · 19 citations
- Parallel Exact Shortest Paths in Almost Linear Work and Square Root DepthNairen Cao, Jeremy T. FinemanSODA 2023 · 4 citations
- A Deterministic Parallel APSP Algorithm and its ApplicationsAdam Karczmarz, Piotr SankowskiSODA 2021 · 9 citations
- Faster Approximate All Pairs Shortest PathsBarna Saha, Christopher YeSODA 2024 · 3 citations
- Improved Additive Approximation Algorithms for APSPCe Jin, Yael Kirkpatrick, Michal Stawarz, Virginia Vassilevska WilliamsSODA 2026
