Negative-Weight Single-Source Shortest Paths in Near-linear Time (2203.03456v5)
Abstract: We present a randomized algorithm that computes single-source shortest paths (SSSP) in $O(m\log8(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].
- Parallel and distributed exact single-source shortest paths with negative edge weights, 2023.
- Fast network decomposition (extended abstract). In PODC, pages 169–177. ACM, 1992.
- Network decomposition and locality in distributed computation. In FOCS, pages 364–369. IEEE Computer Society, 1989.
- Circulation control for faster minimum cost flow in unit-capacity graphs. In FOCS, pages 93–104. IEEE, 2020.
- Routing with polynomial communication-space trade-off. SIAM J. Discret. Math., 5(2):151–162, 1992.
- Baruch Awerbuch. Complexity of network synchronization. J. ACM, 32(4):804–823, 1985. Announced at STOC’84.
- Yair Bartal. Probabilistic approximations of metric spaces and its algorithmic applications. In 37th Annual Symposium on Foundations of Computer Science, FOCS ’96, Burlington, Vermont, USA, 14-16 October, 1996, pages 184–193. IEEE Computer Society, 1996.
- Fully-dynamic graph sparsifiers against an adaptive adversary. CoRR, abs/2004.08432, 2020.
- Negative-weight single-source shortest paths in near-linear time: Now faster! CoRR, abs/2304.05279, 2023.
- R. Bellman. On a Routing Problem. Quarterly of Applied Mathematics, 16(1):87–90, 1958.
- Exact and efficient generation of geometric random variates and random graphs. In Fedor V. Fomin, Rusins Freivalds, Marta Z. Kwiatkowska, and David Peleg, editors, Automata, Languages, and Programming - 40th International Colloquium, ICALP 2013, Riga, Latvia, July 8-12, 2013, Proceedings, Part I, volume 7965 of Lecture Notes in Computer Science, pages 267–278. Springer, 2013.
- Nearly-linear work parallel SDD solvers, low-diameter decomposition, and low-stretch subgraphs. Theory Comput. Syst., 55(3):521–554, 2014.
- Deterministic decremental reachability, scc, and shortest paths via directed expanders and congestion balancing. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 1123–1134. IEEE, 2020.
- Minimum cost flows, mdps, and 𝓁𝓁\mathscr{l}script_l11{}_{\mbox{1}}start_FLOATSUBSCRIPT 1 end_FLOATSUBSCRIPT-regression in nearly linear time for dense instances. In STOC, pages 859–869. ACM, 2021.
- Bipartite matching in nearly-linear time on moderately dense graphs. In FOCS, pages 919–930. IEEE, 2020.
- Solving tall dense linear programs in nearly linear time. In STOC. https://arxiv.org/pdf/2002.02304.pdf, 2020.
- Near-optimal decremental SSSP in dense weighted digraphs. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 1112–1122. IEEE, 2020.
- Jan van den Brand. A deterministic linear program solver in current matrix multiplication time. In SODA, pages 259–278. SIAM, 2020.
- A deterministic algorithm for balanced cut with applications to dynamic connectivity, flows, and beyond. In FOCS, 2020. https://arxiv.org/pdf/1910.08025.pdf.
- Maximum flow and minimum-cost flow in almost-linear time. March 2022.
- Introduction to Algorithms, 3rd Edition. MIT Press, 2009.
- Solving linear programs in the current matrix multiplication time. In STOC, 2019. https://arxiv.org/pdf/1810.07896.
- Negative-weight shortest paths and unit capacity minimum cost flow in O(m10/7logW)𝑂superscript𝑚107𝑊{O}(m^{10/7}\log{W})italic_O ( italic_m start_POSTSUPERSCRIPT 10 / 7 end_POSTSUPERSCRIPT roman_log italic_W ) time. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 752–771. SIAM, 2017.
- Dynamic low-stretch spanning trees in subpolynomial time. In Shuchi Chawla, editor, Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5-8, 2020, pages 463–475. SIAM, 2020.
- Faster approximate lossy generalized flow via interior point algorithms. In STOC, pages 451–460. ACM, 2008.
- Dynamic low-stretch trees via dynamic low-diameter decompositions. In Moses Charikar and Edith Cohen, editors, Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019, Phoenix, AZ, USA, June 23-26, 2019, pages 377–388. ACM, 2019.
- An improved random shift algorithm for spanners and low diameter decompositions. In OPODIS, volume 217 of LIPIcs, pages 16:1–16:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021.
- R. Ford. Paper P-923. The RAND Corperation, Santa Moncia, California, 1956.
- Planar graphs, negative weight edges, shortest paths, and near linear time. J. Comput. Syst. Sci., 72(5):868–889, 2006. Announced at FOCS’01.
- Harold N. Gabow. Scaling algorithms for network problems. J. Comput. Syst. Sci., 31(2):148–168, 1985. announced at FOCS’83.
- Andrew V. Goldberg. Scaling algorithms for the shortest paths problem. SIAM J. Comput., 24(3):494–504, 1995. Announced at SODA’93.
- Faster scaling algorithms for network problems. SIAM J. Comput., 18(5):1013–1036, 1989.
- Faster shortest-path algorithms for planar graphs. J. Comput. Syst. Sci., 55(1):3–23, 1997. Announced at STOC’94.
- Donald B. Johnson. Efficient algorithms for shortest paths in sparse networks. J. ACM, 24(1):1–13, 1977.
- Shortest paths in directed planar graphs with negative lengths: A linear-space O(n log22{}^{\mbox{2}}start_FLOATSUPERSCRIPT 2 end_FLOATSUPERSCRIPT n)-time algorithm. ACM Trans. Algorithms, 6(2):30:1–30:18, 2010. Announced at SODA’09.
- Eugene L. Lawler. Optimal cycles in doubly weighted linear graphs, theory of graphs: International symposium, 1966.
- Eugene L. Lawler. Combinatorial optimization - networks and matroids. Holt, Rinehart and Winston, New York, 1976.
- Generalized nested dissection. SIAM journal on numerical analysis, 16(2):346–358, 1979.
- Low diameter graph decompositions. Comb., 13(4):441–454, 1993.
- Path finding methods for linear programming: Solving linear programs in õ(sqrt(rank)) iterations and faster algorithms for maximum flow. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 424–433, 2014.
- Faster energy maximization for faster maximum flow. In STOC. https://arxiv.org/pdf/1910.14276.pdf, 2020.
- Aleksander Madry. Navigating central path with electrical flows: From flows to matchings, and back. In FOCS, pages 253–262. IEEE Computer Society, 2013.
- Aleksander Madry. Computing maximum flow with augmenting electrical flows. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 593–602. IEEE, 2016.
- E. F. Moore. The Shortest Path Through a Maze. In Proceedings of the International Symposium on the Theory of Switching, pages 285–292, 1959.
- Parallel graph decompositions using random shifts. In Guy E. Blelloch and Berthold Vöcking, editors, 25th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA ’13, Montreal, QC, Canada - July 23 - 25, 2013, pages 196–203. ACM, 2013.
- Shortest paths in planar graphs with real lengths in O(nlog22{}^{\mbox{2}}start_FLOATSUPERSCRIPT 2 end_FLOATSUPERSCRIPTn/loglogn) time. In ESA (2), volume 6347 of Lecture Notes in Computer Science, pages 206–217. Springer, 2010.
- Dynamic spanning forest with worst-case update time: adaptive, las vegas, and O(n1/2−ϵ)𝑂superscript𝑛12italic-ϵ{O}(n^{1/2-\epsilon})italic_O ( italic_n start_POSTSUPERSCRIPT 1 / 2 - italic_ϵ end_POSTSUPERSCRIPT )-time. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 1122–1129, 2017.
- Dynamic minimum spanning forest with subpolynomial worst-case update time. In FOCS, pages 950–961. IEEE Computer Society, 2017.
- Approximating cycles in directed graphs: Fast algorithms for girth and roundtrip spanners. In Artur Czumaj, editor, Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2018, New Orleans, LA, USA, January 7-10, 2018, pages 1374–1392. SIAM, 2018.
- Piotr Sankowski. Algorithms – ESA 2005: 13th Annual European Symposium, Palma de Mallorca, Spain, October 3-6, 2005. Proceedings. chapter Shortest Paths in Matrix Multiplication Time, pages 770–778. Springer Berlin Heidelberg, Berlin, Heidelberg, 2005.
- A. Shimbel. Structure in Communication Nets. In In Proceedings of the Symposium on Information Networks, pages 199–203, Brooklyn, 1955. Polytechnic Press of the Polytechnic Institute of Brooklyn.
- Thatchaphol Saranurak and Di Wang. Expander decomposition and pruning: Faster, stronger, and simpler. In SODA, pages 2616–2635. SIAM, 2019.
- Mikkel Thorup. Undirected single-source shortest paths with positive integer weights in linear time. J. ACM, 46(3):362–394, 1999. Announced at FOCS’97.
- Mikkel Thorup. Integer priority queues with decrease key in constant time and the single source shortest paths problem. J. Comput. Syst. Sci., 69(3):330–353, 2004. Announced at STOC’03.
- Approximate distance oracles. J. ACM, 52(1):1–24, 2005.
- Christian Wulff-Nilsen. Separator theorems for minor-free and shallow minor-free graphs with applications. In FOCS, pages 37–46. IEEE Computer Society, 2011.
- Christian Wulff-Nilsen. Fully-dynamic minimum spanning forest with improved worst-case update time. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 1130–1143, 2017.
- Answering distance queries in directed graphs using fast matrix multiplication. pages 389–396, 2005.