TY - GEN
T1 - Parallel, Distributed, and Quantum Exact Single-Source Shortest Paths with Negative Edge Weights
AU - Ashvinkumar, Vikrant
AU - Bernstein, Aaron
AU - Cao, Nairen
AU - Grunau, Christoph
AU - Haeupler, Bernhard
AU - Jiang, Yonggang
AU - Nanongkai, Danupon
AU - Su, Hsin Hao
N1 - Publisher Copyright:
© Vikrant Ashvinkumar, Aaron Bernstein, Nairen Cao, Christoph Grunau, Bernhard Haeupler, Yonggang Jiang, Danupon Nanongkai, and Hsin-Hao Su; licensed under Creative Commons License CC-BY 4.0.
PY - 2024/9
Y1 - 2024/9
N2 - 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 no(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 WSSSP (m, n)no(1) work and SSSSP (m, n)no(1) span, given access to a non-negative-weight SSSP algorithm with WSSSP (m, n) work and SSSSP (m, n) span in the parallel model, and TSSSP (n, D)no(1) rounds, given access to a non-negative-weight SSSP algorithm that takes TSSSP (n, D) rounds in CONGEST, and QSSSP (m, n)no(1) quantum edge queries, given access to a non-negative-weight SSSP algorithm that takes QSSSP (m, n) queries in the quantum edge query model. This work builds off the recent result of Bernstein, Nanongkai, Wulff-Nilsen [7], 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 m1+o(1) work and n1/2+o(1) span in the parallel model, and (n2/5D2/5 + √n + D)no(1) rounds in CONGEST, and m1/2n1/2+o(1) quantum queries to the adjacency list or n1.5+o(1) quantum queries to the adjacency matrix. Up to a no(1) factor, the parallel and distributed results match the current best upper bounds for reachability [23, 12]. Consequently, any improvement to negative-weight SSSP in these models beyond the no(1) factor necessitates an improvement to the current best bounds for reachability. The quantum result matches the lower bound up to an no(1) factor [9]. 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 [7], 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 [7] 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 [6] in the negative.
AB - 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 no(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 WSSSP (m, n)no(1) work and SSSSP (m, n)no(1) span, given access to a non-negative-weight SSSP algorithm with WSSSP (m, n) work and SSSSP (m, n) span in the parallel model, and TSSSP (n, D)no(1) rounds, given access to a non-negative-weight SSSP algorithm that takes TSSSP (n, D) rounds in CONGEST, and QSSSP (m, n)no(1) quantum edge queries, given access to a non-negative-weight SSSP algorithm that takes QSSSP (m, n) queries in the quantum edge query model. This work builds off the recent result of Bernstein, Nanongkai, Wulff-Nilsen [7], 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 m1+o(1) work and n1/2+o(1) span in the parallel model, and (n2/5D2/5 + √n + D)no(1) rounds in CONGEST, and m1/2n1/2+o(1) quantum queries to the adjacency list or n1.5+o(1) quantum queries to the adjacency matrix. Up to a no(1) factor, the parallel and distributed results match the current best upper bounds for reachability [23, 12]. Consequently, any improvement to negative-weight SSSP in these models beyond the no(1) factor necessitates an improvement to the current best bounds for reachability. The quantum result matches the lower bound up to an no(1) factor [9]. 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 [7], 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 [7] 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 [6] in the negative.
KW - distributed algorithm
KW - Parallel algorithm
KW - shortest paths
UR - http://www.scopus.com/inward/record.url?scp=85205675304&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85205675304&partnerID=8YFLogxK
U2 - 10.4230/LIPIcs.ESA.2024.13
DO - 10.4230/LIPIcs.ESA.2024.13
M3 - Conference contribution
AN - SCOPUS:85205675304
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 32nd Annual European Symposium on Algorithms, ESA 2024
A2 - Chan, Timothy
A2 - Fischer, Johannes
A2 - Iacono, John
A2 - Herman, Grzegorz
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 32nd Annual European Symposium on Algorithms, ESA 2024
Y2 - 2 September 2024 through 4 September 2024
ER -