Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
169 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
45 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Negative-Weight Single-Source Shortest Paths in Near-linear Time (2203.03456v5)

Published 7 Mar 2022 in cs.DS

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].

Definition Search Book Streamline Icon: https://streamlinehq.com
References (58)
  1. Parallel and distributed exact single-source shortest paths with negative edge weights, 2023.
  2. Fast network decomposition (extended abstract). In PODC, pages 169–177. ACM, 1992.
  3. Network decomposition and locality in distributed computation. In FOCS, pages 364–369. IEEE Computer Society, 1989.
  4. Circulation control for faster minimum cost flow in unit-capacity graphs. In FOCS, pages 93–104. IEEE, 2020.
  5. Routing with polynomial communication-space trade-off. SIAM J. Discret. Math., 5(2):151–162, 1992.
  6. Baruch Awerbuch. Complexity of network synchronization. J. ACM, 32(4):804–823, 1985. Announced at STOC’84.
  7. 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.
  8. Fully-dynamic graph sparsifiers against an adaptive adversary. CoRR, abs/2004.08432, 2020.
  9. Negative-weight single-source shortest paths in near-linear time: Now faster! CoRR, abs/2304.05279, 2023.
  10. R. Bellman. On a Routing Problem. Quarterly of Applied Mathematics, 16(1):87–90, 1958.
  11. 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.
  12. Nearly-linear work parallel SDD solvers, low-diameter decomposition, and low-stretch subgraphs. Theory Comput. Syst., 55(3):521–554, 2014.
  13. 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.
  14. 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.
  15. Bipartite matching in nearly-linear time on moderately dense graphs. In FOCS, pages 919–930. IEEE, 2020.
  16. Solving tall dense linear programs in nearly linear time. In STOC. https://arxiv.org/pdf/2002.02304.pdf, 2020.
  17. 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.
  18. Jan van den Brand. A deterministic linear program solver in current matrix multiplication time. In SODA, pages 259–278. SIAM, 2020.
  19. A deterministic algorithm for balanced cut with applications to dynamic connectivity, flows, and beyond. In FOCS, 2020. https://arxiv.org/pdf/1910.08025.pdf.
  20. Maximum flow and minimum-cost flow in almost-linear time. March 2022.
  21. Introduction to Algorithms, 3rd Edition. MIT Press, 2009.
  22. Solving linear programs in the current matrix multiplication time. In STOC, 2019. https://arxiv.org/pdf/1810.07896.
  23. Negative-weight shortest paths and unit capacity minimum cost flow in O⁢(m10/7⁢log⁡W)𝑂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.
  24. 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.
  25. Faster approximate lossy generalized flow via interior point algorithms. In STOC, pages 451–460. ACM, 2008.
  26. 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.
  27. 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.
  28. R. Ford. Paper P-923. The RAND Corperation, Santa Moncia, California, 1956.
  29. Planar graphs, negative weight edges, shortest paths, and near linear time. J. Comput. Syst. Sci., 72(5):868–889, 2006. Announced at FOCS’01.
  30. Harold N. Gabow. Scaling algorithms for network problems. J. Comput. Syst. Sci., 31(2):148–168, 1985. announced at FOCS’83.
  31. Andrew V. Goldberg. Scaling algorithms for the shortest paths problem. SIAM J. Comput., 24(3):494–504, 1995. Announced at SODA’93.
  32. Faster scaling algorithms for network problems. SIAM J. Comput., 18(5):1013–1036, 1989.
  33. Faster shortest-path algorithms for planar graphs. J. Comput. Syst. Sci., 55(1):3–23, 1997. Announced at STOC’94.
  34. Donald B. Johnson. Efficient algorithms for shortest paths in sparse networks. J. ACM, 24(1):1–13, 1977.
  35. 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.
  36. Eugene L. Lawler. Optimal cycles in doubly weighted linear graphs, theory of graphs: International symposium, 1966.
  37. Eugene L. Lawler. Combinatorial optimization - networks and matroids. Holt, Rinehart and Winston, New York, 1976.
  38. Generalized nested dissection. SIAM journal on numerical analysis, 16(2):346–358, 1979.
  39. Low diameter graph decompositions. Comb., 13(4):441–454, 1993.
  40. 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.
  41. Faster energy maximization for faster maximum flow. In STOC. https://arxiv.org/pdf/1910.14276.pdf, 2020.
  42. Aleksander Madry. Navigating central path with electrical flows: From flows to matchings, and back. In FOCS, pages 253–262. IEEE Computer Society, 2013.
  43. 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.
  44. E. F. Moore. The Shortest Path Through a Maze. In Proceedings of the International Symposium on the Theory of Switching, pages 285–292, 1959.
  45. 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.
  46. 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.
  47. 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.
  48. Dynamic minimum spanning forest with subpolynomial worst-case update time. In FOCS, pages 950–961. IEEE Computer Society, 2017.
  49. 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.
  50. 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.
  51. 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.
  52. Thatchaphol Saranurak and Di Wang. Expander decomposition and pruning: Faster, stronger, and simpler. In SODA, pages 2616–2635. SIAM, 2019.
  53. 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.
  54. 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.
  55. Approximate distance oracles. J. ACM, 52(1):1–24, 2005.
  56. Christian Wulff-Nilsen. Separator theorems for minor-free and shallow minor-free graphs with applications. In FOCS, pages 37–46. IEEE Computer Society, 2011.
  57. 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.
  58. Answering distance queries in directed graphs using fast matrix multiplication. pages 389–396, 2005.
Citations (30)

Summary

  • The paper introduces a randomized combinatorial algorithm that computes single-source shortest paths on negative-weight graphs in O(m log^8(n) log W) time.
  • It employs low-diameter decomposition and recursive scaling to simplify the problem, avoiding complex continuous optimization techniques.
  • This breakthrough outperforms the classic O(m√n log W) bound, offering practical benefits for resource-constrained and real-world applications.

An Algorithm for Single-Source Shortest Paths with Negative Weights in Near-Linear Time

The research paper presents a sophisticated yet elegantly simple randomized algorithm that calculates single-source shortest paths (SSSP) in graphs with negative weights in near-linear time, specifically O(mlog8(n)logW)O(m\log^8(n)\log W), where mm and nn represent the number of edges and vertices, respectively, and WW is a parameter related to the minimal edge weight. This complexity essentially addresses and resolves a longstanding problem in graph algorithms efficiently. Prior to this work, state-of-the-art solutions such as those presented in FOCS'20 tackled this problem within complexity bounds of O~((m+n1.5)logW)\tilde O((m+n^{1.5})\log W) and m4/3+o(1)logWm^{4/3+o(1)}\log W for dense and sparse graphs.

The significant contribution of this paper is its simplicity. Unlike contemporary methods that rely heavily on intricate continuous optimization and dynamic algorithms, this work introduces a novel combinatorial approach. Notably, this is the first algorithm to surpass the O(mnlogW)O(m\sqrt{n}\log W) bound—an achievement that has remained unchallenged for over thirty years since established by Gabow and Tarjan.

Key Components of the Algorithm

  1. Low-Diameter Decomposition: The algorithm employs a decomposition technique where the graph is broken into subgraphs of small diameter. This decomposition is instrumental for efficiently handling subgraphs by ensuring that each strongly connected component (SCC) has a bounded diameter. The decomposition considers only non-negative-weight edges, a prominent feature distinguishing it from earlier methodologies.
  2. Recursive Scaling: The core of the algorithm leverages a recursive scaling technique. By iteratively refining edge weight approximations and reducing the search space, the algorithm progressively approaches the shortest path solution without tripping the penalty of negative weight cycles.
  3. Combinatorial Approach: The implementation primarily uses basic combinatorial structures and tools instead of advanced algebraic or flow algorithms, making it more accessible and potentially more efficient in various computational environments.

Theoretical and Practical Implications

The results have concrete implications for both theoretical exploration and practical application in computer science:

  • Theoretical:

The method breaks the myth surrounding the necessity of complex optimization methods for negative-weight graphs. By challenging assumptions about the difficulty of the problem, it opens avenues for further exploration into simple combinatorial algorithms for other graph problems. It invites reconsideration of existing graph algorithm complexities and potential simplifications.

  • Practical:

From a practical standpoint, the simplicity paired with the near-linear efficiency of the proposed algorithm makes it an attractive candidate for integration into software requiring SSSP calculations on negatively weighted graphs. Having a method that does not depend on complex mechanistic frameworks means improved maintainability and usability in resource-constrained environments.

Speculations on Future Development

This work potentially paves the way for further simplification and optimization of algorithms within the domain of graph theory and network flows. Future studies can expand upon:

  1. Generalization to Other Problems: The insights and methodologies gleaned from this paper can be adapted and extended to tackle other graph problems like transshipment and min-cost flow, optimizing them similarly via combinatorial means.
  2. Parallelization and Distributed Computing: Implementing the presented concepts in parallel or distributed computing environments could yield performance improvements commensurate with multi-core or distributed systems.
  3. Optimizing Polylogarithmic Factors: While the authors acknowledge that logarithmic factors in the runtime are not optimized, future research can focus on refining these to improve the practical performance further.

In conclusion, this paper introduces a promising advance in the field of graph algorithms, making complex SSSP problems with negative weights more tractable via a noteworthy combinatorial, and simple, framework.

X Twitter Logo Streamline Icon: https://streamlinehq.com
Youtube Logo Streamline Icon: https://streamlinehq.com