Distributed exact weighted all-pairs shortest paths in near-linear time

In the distributed all-pairs shortest paths problem (APSP), 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 (1+o(1))-approximation Θ(n)-time algorithm and a nearly-tight Ω(n) lower bound [Nanongkai, STOC’14; Lenzen and Patt-Shamir PODC’15]. For the exact case, Elkin [STOC’17] presented an O(n5/3 log2/3 n) time bound, which was later improved to Õ(n5/4) in [Huang, Nanongkai, Saranurak FOCS’17].It was shown that any super-linear lower bound (in n) requires a new technique [Censor-Hillel, Khoury, Paz, DISC’17], but otherwise it remained widely open whether there exists a Õ(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) Õ(n)-time algorithm, matching the lower bound up to polylogarithmic factors. Like the previous Õ(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 Õ(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)}). The previously best algorithm for this more difficult setting required Õ(n3/2) time [Agarwal and Ramachandran, ArXiv’18] (this can be improved to Õ(n4/3) if one allows bidirectional communication). Our algorithm is extremely simple and relies on a new technique called Random Filtered Broadcast. Given any sets of nodes A,B⊆ V and assuming that every b ∈ B knows all distances from nodes in A, and every node v ∈ V knows all distances from nodes in B, we want every v∈ V to know DistThroughB(a,v) = minb∈ B dist(a,b) + dist(b,v) for every a∈ A. Previous works typically solve this problem by broadcasting all knowledge of every b∈ B, causing super-linear edge congestion and time. We show a randomized algorithm that can reduce edge congestions and thus solve this problem in Õ(n) expected time.

[1]  Shay Kutten,et al.  Fast Distributed Construction of Small k-Dominating Sets and Applications , 1998, J. Algorithms.

[2]  Christoph Lenzen,et al.  Efficient distributed source detection with limited bandwidth , 2013, PODC '13.

[3]  Michael Elkin,et al.  Distributed exact shortest paths in sublinear time , 2017, STOC.

[4]  Monika Henzinger,et al.  Distributed edge connectivity in sublinear time , 2019, STOC.

[5]  Amr Mohsen,et al.  Variable ECG findings associated with pulmonary embolism , 2013, BMJ Case Reports.

[6]  Ami Paz,et al.  Quadratic and Near-Quadratic Lower Bounds for the CONGEST Model , 2017, DISC.

[7]  Michael Elkin,et al.  A Simple Deterministic Distributed MST Algorithm, with Near-Optimal Time and Message Complexities , 2017, PODC.

[8]  Keren Censor-Hillel,et al.  Near-Linear Lower Bounds for Distributed Distance Computations, Even in Sparse Networks , 2016, DISC.

[9]  T. Lindvall ON A ROUTING PROBLEM , 2004, Probability in the Engineering and Informational Sciences.

[10]  Boaz Patt-Shamir,et al.  Distributed Approximate Matching , 2009, SIAM J. Comput..

[11]  Vijaya Ramachandran,et al.  New and Simplified Distributed Algorithms for Weighted All Pairs Shortest Paths , 2018, ArXiv.

[12]  Monika Henzinger,et al.  A deterministic almost-tight distributed algorithm for approximating single-source shortest paths , 2015, STOC.

[13]  Christoph Lenzen,et al.  Near-Optimal Approximate Shortest Paths and Transshipment in Distributed and Streaming Models , 2016, DISC.

[14]  David Peleg,et al.  Distributed Computing: A Locality-Sensitive Approach , 1987 .

[15]  Maleq Khan,et al.  A fast distributed approximation algorithm for minimum spanning trees , 2007, Distributed Computing.

[16]  Peter Robinson,et al.  A time- and message-optimal distributed algorithm for minimum spanning trees , 2016, STOC.

[17]  Donald B. Johnson,et al.  Efficient Algorithms for Shortest Paths in Sparse Networks , 1977, J. ACM.

[18]  Danupon Nanongkai,et al.  Distributed approximation algorithms for weighted shortest paths , 2014, STOC.

[19]  David Peleg,et al.  Distributed verification and hardness of distributed approximation , 2010, STOC '11.

[20]  Boaz Patt-Shamir,et al.  Fast routing table construction using small messages: extended abstract , 2012, STOC '13.

[21]  Boaz Patt-Shamir,et al.  Fast Partial Distance Estimation and Applications , 2014, PODC.

[22]  Mohsen Ghaffari,et al.  Near-Optimal Scheduling of Distributed Algorithms , 2015, PODC.

[23]  Roger Wattenhofer,et al.  Networks cannot compute their diameter in sublinear time , 2012, SODA.

[24]  Fabian Kuhn,et al.  Distributed Approximate Maximum Matching in the CONGEST Model , 2018, DISC.

[25]  Danupon Nanongkai,et al.  A Faster Distributed Single-Source Shortest Paths Algorithm , 2017, 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS).

[26]  L. R. Ford,et al.  NETWORK FLOW THEORY , 1956 .

[27]  Hsin-Hao Su,et al.  Almost-Tight Distributed Minimum Cut Algorithms , 2014, DISC.

[28]  Fabian Kuhn,et al.  Distributed Minimum Cut Approximation , 2013, DISC.

[29]  Keshav Pingali,et al.  A round-efficient distributed betweenness centrality algorithm , 2019, PPoPP.

[30]  Thatchaphol Saranurak,et al.  Distributed Exact Weighted All-Pairs Shortest Paths in Õ(n^{5/4}) Rounds , 2017, 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS).

[31]  Hartmut Klauck,et al.  Can quantum communication speed up distributed computation? , 2012, PODC.

[32]  Boaz Patt-Shamir,et al.  Near-Optimal Distributed Maximum Flow: Extended Abstract , 2015, PODC.

[33]  Michael Elkin An Unconditional Lower Bound on the Time-Approximation Trade-off for the Distributed Minimum Spanning Tree Problem , 2006, SIAM J. Comput..

[34]  Ashwin Lall,et al.  Dense Subgraphs on Dynamic Networks , 2012, DISC.

[35]  David Peleg,et al.  Tight Bounds for Distributed Minimum-Weight Spanning Tree Verification , 2013, Theory of Computing Systems.

[36]  Matteo Pontecorvi,et al.  A Deterministic Distributed Algorithm for Exact Weighted All-Pairs Shortest Paths in Õ(n 3/2 ) Rounds , 2018, PODC.

[37]  Boaz Patt-Shamir,et al.  Fast Routing Table Construction Using Small Messages , 2012, ArXiv.

[38]  David Peleg,et al.  Distributed Algorithms for Network Diameter and Girth , 2012, ICALP.

[39]  Danupon Nanongkai,et al.  Distributed Exact Weighted All-Pairs Shortest Paths in $\tilde O(n^{5/4})$ Rounds , 2017 .

[40]  Vijaya Ramachandran,et al.  A Deterministic Distributed Algorithm for Weighted All Pairs Shortest Paths Through Pipelining. , 2018 .

[41]  Mohsen Ghaffari,et al.  Brief Announcement: Distributed Single-Source Reachability , 2015, PODC.

[42]  Mohsen Ghaffari,et al.  Improved distributed algorithms for exact shortest paths , 2018, STOC.

[43]  Roger Wattenhofer,et al.  Optimal distributed all pairs shortest paths and applications , 2012, PODC '12.

[44]  David Peleg,et al.  A Near-Tight Lower Bound on the Time Complexity of Distributed Minimum-Weight Spanning Tree Construction , 2000, SIAM J. Comput..

[45]  Christoph Lenzen,et al.  Approximate Undirected Transshipment and Shortest Paths via Gradient Descent , 2016, ArXiv.

[46]  Fabian Kuhn,et al.  Distributed connectivity decomposition , 2013, PODC.