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 \cite{Thorup1999} for the all-pairs problems in undirected graphs. The main insight is that shortest paths problems with approximately balanced directed cost functions can be solved similarly to the undirected case. The algorithm finds an approximately balanced reduced cost function in an $O(m\sqrt{n}\log n)$ preprocessing step. 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 can also be applied to the $\ell_\infty$-matrix balancing problem.
Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.
Record
- Archive ID
- arxiv:2007.07975
- Published
- Jul 15, 2020
- Updated
- Nov 30, 2022
- Venue
- Society for Industrial and Applied Mathematics eBooks
- DOI
- 10.1137/1.9781611976465.16
- arXiv
- 2007.07975
- Categories
- cs.DS, math.OC
- Provenance
- arxiv