Parallel, Distributed, and Quantum Exact Single-Source Shortest Paths with Negative Edge Weights

Authors Vikrant Ashvinkumar, Aaron Bernstein, Nairen Cao, Christoph Grunau, Bernhard Haeupler, Yonggang Jiang, Danupon Nanongkai, Hsin-Hao Su



PDF
Thumbnail PDF

File

LIPIcs.ESA.2024.13.pdf
  • Filesize: 0.83 MB
  • 15 pages

Document Identifiers

Author Details

Vikrant Ashvinkumar
  • Rutgers University, New Brunswick, NJ, USA
Aaron Bernstein
  • Rutgers University, New Brunswick, NJ, USA
Nairen Cao
  • Department of Computer Science, Boston College, Chestnut Hill, MA, USA
Christoph Grunau
  • ETH Zürich, Switzerland
Bernhard Haeupler
  • INSAIT, Sofia, Bulgaria
  • ETH Zürich, Switzerland
Yonggang Jiang
  • Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
Danupon Nanongkai
  • Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany
Hsin-Hao Su
  • Department of Computer Science, Boston College, Chestnut Hill, MA, USA

Cite AsGet BibTex

Vikrant Ashvinkumar, Aaron Bernstein, Nairen Cao, Christoph Grunau, Bernhard Haeupler, Yonggang Jiang, Danupon Nanongkai, and Hsin-Hao Su. Parallel, Distributed, and Quantum Exact Single-Source Shortest Paths with Negative Edge Weights. In 32nd Annual European Symposium on Algorithms (ESA 2024). Leibniz International Proceedings in Informatics (LIPIcs), Volume 308, pp. 13:1-13:15, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024)
https://doi.org/10.4230/LIPIcs.ESA.2024.13

Abstract

This paper presents parallel, distributed, and quantum algorithms for single-source shortest paths when edges can have negative integer weights (negative-weight SSSP). We show a framework that reduces negative-weight SSSP in all these settings to n^{o(1)} calls to any SSSP algorithm that works on inputs with non-negative integer edge weights (non-negative-weight SSSP) with a virtual source. More specifically, for a directed graph with m edges, n vertices, undirected hop-diameter D, and polynomially bounded integer edge weights, we show randomized algorithms for negative-weight SSSP with - W_{SSSP}(m,n)n^{o(1)} work and S_{SSSP}(m,n)n^{o(1)} span, given access to a non-negative-weight SSSP algorithm with W_{SSSP}(m,n) work and S_{SSSP}(m,n) span in the parallel model, and - T_{SSSP}(n,D)n^{o(1)} rounds, given access to a non-negative-weight SSSP algorithm that takes T_{SSSP}(n,D) rounds in CONGEST, and - Q_{SSSP}(m,n)n^{o(1)} quantum edge queries, given access to a non-negative-weight SSSP algorithm that takes Q_{SSSP}(m,n) queries in the quantum edge query model. This work builds off the recent result of Bernstein, Nanongkai, Wulff-Nilsen [Bernstein et al., 2022], which gives a near-linear time algorithm for negative-weight SSSP in the sequential setting. Using current state-of-the-art non-negative-weight SSSP algorithms yields randomized algorithms for negative-weight SSSP with - m^{1+o(1)} work and n^{1/2+o(1)} span in the parallel model, and - (n^{2/5}D^{2/5} + √n + D)n^{o(1)} rounds in CONGEST, and - m^{1/2}n^{1/2+o(1)} quantum queries to the adjacency list or n^{1.5+o(1)} quantum queries to the adjacency matrix. Up to a n^{o(1)} factor, the parallel and distributed results match the current best upper bounds for reachability [Jambulapati et al., 2019; Cao et al., 2021]. Consequently, any improvement to negative-weight SSSP in these models beyond the n^{o(1)} factor necessitates an improvement to the current best bounds for reachability. The quantum result matches the lower bound up to an n^{o(1)} factor [Aija Berzina et al., 2004]. Our main technical contribution is an efficient reduction from computing a low-diameter decomposition (LDD) of directed graphs to computations of non-negative-weight SSSP with a virtual source. Efficiently computing an LDD has heretofore only been known for undirected graphs in both the parallel and distributed models, and been rather unstudied in quantum models. The directed LDD is a crucial step of the sequential algorithm in [Bernstein et al., 2022], and we think that its applications to other problems in parallel and distributed models are far from being exhausted. Other ingredients of our results include altering the recursion structure of the scaling algorithm in [Bernstein et al., 2022] to surmount difficulties that arise in these models, and also an efficient reduction from computing strongly connected components to computations of SSSP with a virtual source in CONGEST. The latter result answers a question posed in [Bernstein and Nanongkai, 2019] in the negative.

Subject Classification

ACM Subject Classification
  • Theory of computation → Shortest paths
  • Theory of computation → Parallel algorithms
  • Theory of computation → Distributed algorithms
Keywords
  • Parallel algorithm
  • distributed algorithm
  • shortest paths

Metrics

  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    0
    PDF Downloads

References

  1. B. Awerbuch, M. Luby, A.V. Goldberg, and S.A. Plotkin. Network decomposition and locality in distributed computation. In 30th Annual Symposium on Foundations of Computer Science, pages 364-369, 1989. URL: https://doi.org/10.1109/SFCS.1989.63504.
  2. Kyriakos Axiotis, Aleksander Madry, and Adrian Vladu. Circulation control for faster minimum cost flow in unit-capacity graphs. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 93-104. IEEE, 2020. URL: https://doi.org/10.1109/FOCS46700.2020.00018.
  3. Yair Bartal. Probabilistic approximation of metric spaces and its algorithmic applications. In Proceedings of 37th Conference on Foundations of Computer Science, pages 184-193. IEEE, 1996. Google Scholar
  4. Ruben Becker, Yuval Emek, and Christoph Lenzen. Low diameter graph decompositions by approximate distance computation. In ITCS, volume 151 of LIPIcs, pages 50:1-50:29. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2020. Google Scholar
  5. Aaron Bernstein, Maximilian Probst Gutenberg, and Christian Wulff-Nilsen. Near-optimal decremental sssp in dense weighted digraphs. In 2020 IEEE 61st Annual Symposium on Foundations of Computer Science (FOCS), pages 1112-1122. IEEE, 2020. Google Scholar
  6. Aaron Bernstein and Danupon Nanongkai. Distributed exact weighted all-pairs shortest paths in near-linear time. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pages 334-342, 2019. Google Scholar
  7. Aaron Bernstein, Danupon Nanongkai, and Christian Wulff-Nilsen. Negative-weight single-source shortest paths in near-linear time. In 2022 IEEE 63rd annual symposium on foundations of computer science (FOCS), pages 600-611. IEEE, 2022. Google Scholar
  8. Aaron Bernstein, Maximilian Probst, and Christian Wulff-Nilsen. Decremental strongly-connected components and single-source reachability in near-linear time. In Proceedings of the 51st Annual ACM SIGACT Symposium on theory of computing, pages 365-376, 2019. Google Scholar
  9. Aija Berzina, Andrej Dubrovsky, Rusins Freivalds, Lelde Lace, and Oksana Scegulnaja. Quantum query complexity for some graph problems. In SOFSEM, volume 2932 of Lecture Notes in Computer Science, pages 140-150. Springer, 2004. Google Scholar
  10. Karl Bringmann, Alejandro Cassis, and Nick Fischer. Negative-weight single-source shortest paths in near-linear time: Now faster! In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 515-538. IEEE, 2023. Google Scholar
  11. Nairen Cao and Jeremy Fineman. Parallel exact shortest paths in almost linear work and square root depth. In SODA. SIAM, 2023. Google Scholar
  12. Nairen Cao, Jeremy T. Fineman, and Katina Russell. Brief announcement: An improved distributed approximate single source shortest paths algorithm. In Proceedings of the 2021 ACM Symposium on Principles of Distributed Computing, PODC'21, pages 493-496, New York, NY, USA, 2021. Association for Computing Machinery. URL: https://doi.org/10.1145/3465084.3467945.
  13. Nairen Cao, Jeremy T. Fineman, and Katina Russell. Parallel shortest paths with negative edge weights. In Proceedings of the 34th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '22, pages 177-190, New York, NY, USA, 2022. Association for Computing Machinery. URL: https://doi.org/10.1145/3490148.3538583.
  14. Shiri Chechik, Thomas Dueholm Hansen, Giuseppe F Italiano, Jakub Łącki, and Nikos Parotsidis. Decremental single-source reachability and strongly connected components in O(m√n) total update time. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 315-324. IEEE, 2016. Google Scholar
  15. Li Chen, Rasmus Kyng, Yang P. Liu, Richard Peng, Maximilian Probst Gutenberg, and Sushant Sachdeva. Maximum flow and minimum-cost flow in almost-linear time. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 612-623, 2022. URL: https://doi.org/10.1109/FOCS54457.2022.00064.
  16. Michael B. Cohen, Aleksander Mądry, Piotr Sankowski, and Adrian Vladu. Negative-weight shortest paths and unit capacity minimum cost flow in Õ(m^10/7 log w ) time: (extended abstract). In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '17, pages 752-771, USA, 2017. Society for Industrial and Applied Mathematics. Google Scholar
  17. Christoph Dürr, Mark Heiligman, Peter Høyer, and Mehdi Mhalla. Quantum query complexity of some graph problems. SIAM J. Comput., 35(6):1310-1328, 2006. Google Scholar
  18. M. Elkin and O. Neiman. Hopsets with constant hopbound, and applications to approximate shortest paths. In 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 128-137, Los Alamitos, CA, USA, October 2016. IEEE Computer Society. URL: https://doi.org/10.1109/FOCS.2016.22.
  19. Sebastian Forster, Gramoz Goranci, Yang P. Liu, Richard Peng, Xiaorui Sun, and Mingquan Ye. Minor sparsifiers and the distributed laplacian paradigm. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 989-999, 2022. URL: https://doi.org/10.1109/FOCS52979.2021.00099.
  20. Mohsen Ghaffari, Christoph Grunau, Bernhard Haeupler, Saeed Ilchi, and Václav Rozhoň. Improved distributed network decomposition, hitting sets, and spanners, via derandomization. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2532-2566. SIAM, 2023. URL: https://doi.org/10.1137/1.9781611977554.ch97.
  21. Mohsen Ghaffari, Fabian Kuhn, and Yannic Maus. On the complexity of local distributed graph problems. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, pages 784-797, New York, NY, USA, 2017. Association for Computing Machinery. URL: https://doi.org/10.1145/3055399.3055471.
  22. Andrew V. Goldberg. Scaling algorithms for the shortest paths problem. SIAM Journal on Computing, 24(3):494-504, 1995. URL: https://doi.org/10.1137/S0097539792231179.
  23. Arun Jambulapati, Yang P Liu, and Aaron Sidford. Parallel reachability in almost linear work and square root depth. In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 1664-1686. IEEE, 2019. Google Scholar
  24. Nathan Linial and Michael E. Saks. Low diameter graph decompositions. Comb., 13(4):441-454, 1993. URL: https://doi.org/10.1007/BF01303516.
  25. Gary L. Miller, Richard Peng, and Shen Chen Xu. Parallel graph decompositions using random shifts. In SPAA, pages 196-203. ACM, 2013. Google Scholar
  26. David Peleg and Vitaly Rubinovich. A near-tight lower bound on the time complexity of distributed mst construction. In 40th Annual Symposium on Foundations of Computer Science (Cat. No. 99CB37039), pages 253-261. IEEE, 1999. Google Scholar
  27. Václav Rozhon, Michael Elkin, Christoph Grunau, and Bernhard Haeupler. Deterministic low-diameter decompositions for weighted graphs and distributed and parallel applications. In FOCS, pages 1114-1121. IEEE, 2022. Google Scholar
  28. Václav Rozhoň and Mohsen Ghaffari. Polylogarithmic-time deterministic network decomposition and distributed derandomization. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 350-363, 2020. Google Scholar
  29. Václav Rozhoň, Bernhard Haeupler, Anders Martinsson, Christoph Grunau, and Goran Zuzic. Parallel breadth-first search and exact shortest paths and stronger notions for approximate distances. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 321-334, 2023. Google Scholar
  30. Václav Rozhoň, Christoph Grunau, Bernhard Haeupler, Goran Zuzic, and Jason Li. Undirected (1+ε)-shortest paths via minor-aggregates: Near-optimal deterministic parallel and distributed algorithms. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022, pages 478-487, New York, NY, USA, 2022. Association for Computing Machinery. URL: https://doi.org/10.1145/3519935.3520074.
  31. Václav Rozhoň, Michael Elkin, Christoph Grunau, and Bernhard Haeupler. Deterministic low-diameter decompositions for weighted graphs and distributed and parallel applications. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 1114-1121, 2022. URL: https://doi.org/10.1109/FOCS54457.2022.00107.
  32. Warren Schudy. Finding strongly connected components in parallel using o(log² n) reachability queries. In Proceedings of the twentieth annual symposium on Parallelism in algorithms and architectures, pages 146-151, 2008. Google Scholar
  33. Jan van den Brand, Yin Tat Lee, Danupon Nanongkai, Richard Peng, Thatchaphol Saranurak, Aaron Sidford, Zhao Song, and Di Wang. Bipartite matching in nearly-linear time on moderately dense graphs. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 919-930. IEEE, 2020. URL: https://doi.org/10.1109/FOCS46700.2020.00090.
Questions / Remarks / Feedback
X

Feedback for Dagstuhl Publishing


Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail