Distributed Exact Weighted All-Pairs Shortest Paths in Õ(n^{5/4}) Rounds

We study computing all-pairs shortest paths (APSP) on distributed networks (the CONGEST model). The goal is for every node in the (weighted) network to know the distance from every other node using communication. The problem admits (1+o(1))-approximation Õ(n)-time algorithms [2], [3], which are matched with \tilde Ω(n)-time lower bounds [4], [5],\footnote{\tilde \Theta, Õ and \tilde Ω hide polylogarithmic factors. Note that the lower bounds also hold even in the unweighted case and in the weighted case with polynomial approximation ratios.}. No Ω(n) lower bound or o(m) upper bound were known for exact computation.In this paper, we present an Õ(n^{5/4})-time randomized (Las Vegas) algorithm for exact weighted APSP; this provides the first improvement over the naive O(m)-time algorithm when the network is not so sparse. Our result also holds for the case where edge weights are asymmetric} (a.k.a. the directed case where communication is bidirectional). Our techniques also yield an Õ(n^{3/4}k^{1/2}+n)-time algorithm for the k-source shortest paths} problem where we want every node to know distances from k sources; this improves Elkins recent bound [6] when k=\tilde Ω(n^{1/4}).We achieve the above results by developing distributed algorithms on top of the classic scaling technique, which we believe is used for the first time for distributed shortest paths computation. One new algorithm which might be of an independent interest is for the reversed r-sink shortest paths} problem, where we want every of r sinks to know its distances from all other nodes, given that every node already knows its distance to every sink. We show an Õ(n√{r})-time algorithm for this problem. Another new algorithm is called short range extension, where we show that in Õ(n√{h}) time the knowledge about distances can be extended for additional h hops. For this, we use weight rounding to introduce small additive} errors which can be later fixed.

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

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

[3]  Michael Elkin,et al.  Computing almost shortest paths , 2001, TALG.

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

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

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

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

[8]  Ramakrishna Thurimella Sub-Linear Distributed Algorithms for Sparse Certificates and Biconnected Components , 1997, J. Algorithms.

[9]  Baruch Awerbuch,et al.  Optimal distributed algorithms for minimum weight spanning tree, counting, leader election, and related problems , 1987, STOC.

[10]  Michael Elkin,et al.  Hopsets with Constant Hopbound, and Applications to Approximate Shortest Paths , 2016, 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS).

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

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

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

[14]  Mihalis Yannakakis,et al.  High-probability parallel transitive closure algorithms , 1990, SPAA '90.

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

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

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

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

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

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

[21]  Francis Y. L. Chin,et al.  An almost linear time and O(nlogn+e) Messages distributed algorithm for minimum-weight spanning trees , 1985, 26th Annual Symposium on Foundations of Computer Science (sfcs 1985).

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

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

[24]  Michael Elkin,et al.  Distributed approximation: a survey , 2004, SIGA.

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

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

[27]  Pierre A. Humblet,et al.  A Distributed Algorithm for Minimum-Weight Spanning Trees , 1983, TOPL.

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

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

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

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

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

[33]  Harold N. Gabow,et al.  Scaling algorithms for network problems , 1983, 24th Annual Symposium on Foundations of Computer Science (sfcs 1983).

[34]  Eli Gafni,et al.  Improvements in the time complexity of two message-optimal election algorithms , 1985, PODC '85.

[35]  Dahlia Malkhi,et al.  Efficient distributed approximation algorithms via probabilistic tree embeddings , 2008, PODC '08.

[36]  David Pritchard,et al.  Fast computation of small cuts via cycle space sampling , 2007, TALG.

[37]  Robert E. Tarjan,et al.  Faster Scaling Algorithms for Network Problems , 1989, SIAM J. Comput..

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

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

[40]  Mihalis Yannakakis,et al.  High-Probability Parallel Transitive-Closure Algorithms , 1991, SIAM J. Comput..

[41]  Andrew V. Goldberg,et al.  Scaling algorithms for the shortest paths problem , 1995, SODA '93.

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