Back to Search Start Over

DISTRIBUTED EXACT WEIGHTED ALL-PAIRS SHORTEST PATHS IN RANDOMIZED NEAR-LINEAR TIME.

Authors :
BERNSTEIN, AARON
NANONGKAI, DANUPON
Source :
SIAM Journal on Computing. 2023, Vol. 52 Issue 2, p112-127. 16p.
Publication Year :
2023

Abstract

Abstract. In the distributed all-pairs shortest paths problem, every node in the weighted undirected distributed network (the CONGEST model) needs to know the distance from every other node using least number of communication rounds (typically called time complexity). The problem admits a (1 + (1))-approximation 9(n)-time algorithm and a nearly tight 12(n) lower bound [D. Nanongkai, STOC'14, ACM, New York, 2014, pp. 565-573; C. Lenzen and B. Patt-Shamir, PODC'15, ACM, New York, 2015, pp. 153-162]. (9, 0 and n hide polylogarithmic factors. Note that the lower bounds also hold even in the unweighted case and in the weighted case with polynomial approximation ratios (C. Lenzen and D. Peleg, PODC, ACM, New York, 2013, pp. 375-382; S. Holzer and R. Wattenofer, PODC, ACM, New York, 2012, pp. 355-364; D. Peleg, L. Roditty, and E. Tal, ICALP, Springer, Berlin, 2012, pp. 660-672; D. Nanongkai, STOC, ACM, New York, 2014, pp. 565-573-672). For the exact case, Elkin [STOC'17, ACM, New York, 2017, pp. 757-790] presented an 0(n5/3 log2/3 n) time bound, which was later improved to O(n5/4) [C.-C. Huang, D. Nanongkai, T. Saranurak, FOCS'17, IEEE Computer Society, Los Alamitos, CA, 2017, pp. 168-179]. It was shown that any superlinear lower bound (in n) requires a new technique [K. Censor-Hillel, S. Khoury, A. Paz, DISC'17, LIPIcs Leibniz Int. Proc. Inform., Vol. 91, Schloss-Dagstuhl, Wadern, Germany, 2017, 10], but otherwise it remained widely open whether there exists a O(n)-time algorithm for the exact case, which would match the best possible approximation algorithm. This paper resolves this question positively: we present a randomized (Las Vegas) 0(n)-time algorithm, matching the lower bound up to polylogarithmic factors. Like the previous 0(n5/4) bound, our result works for directed graphs with zero (and even negative) edge weights. In addition to the improved running time, our algorithm works in a more general setting than that required by the previous 0(n5/4) bound; in our setting (i) the communication is only along edge directions (as opposed to bidirectional), and (ii) edge weights are arbitrary (as opposed to integers in {1, 2, ..., poly(n)}). As far as we know, ours is the first o(n²) algorithm that only requires unidirectional communication. For arbitrary weights, the previous state-of-the-art required 0(n4/3) time [U. Agarwal and V. Ramachandran, IPDPS 2019, IEEE Computer Society, Los Alamitos, CA, 2019, and SPAA 2020, ACM, New York, 2020, pp. 11-21]. Our algorithm is extremely simple and relies on a new technique called random filtered broadcast. Given any sets of nodes A, B C V and assuming that every b E B knows all distances from nodes in A, and every node v E V knows all distances from nodes in B, we want every v E V to know DistThroughB (a, v) = minbEB dist(a, b) + dist(b, v) for every a E A. Previous works typically solve this problem by broadcasting all knowledge of every b E B, causing superlinear edge congestion and time. We show a randomized algorithm that can reduce edge congestions and thus solve this problem in 0(n) expected time. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
00975397
Volume :
52
Issue :
2
Database :
Academic Search Index
Journal :
SIAM Journal on Computing
Publication Type :
Academic Journal
Accession number :
163957844
Full Text :
https://doi.org/10.1137/20M1312782