Parallel Reachability in Almost Linear Work and Square Root Depth

In this paper we provide a parallel algorithm that given any n-node m-edge directed graph and source vertex s computes all vertices reachable from s with Õ(m) work and n^{1/2 + o(1)} depth with high probability in n. This algorithm also computes a set of Õ(n) edges which when added to the graph preserves reachability and ensures that the diameter of the resulting graph is at most n^{1/2 + o(1)}. Our result improves upon the previous best known almost linear work reachability algorithm due to Fineman [1] which had depth Õ(n^2/3). Further, we show how to leverage this algorithm to achieve improved distributed algorithms for single source reachability in the CONGEST model. In particular, we provide a distributed algorithm that given a n-node digraph of undirected hop-diameter D solves the single source reachability problem with Õ(n^1/2 + n^1/3+o(1) D^2/3) rounds of the communication in the congest~model with high probability in n. Our algorithm is nearly optimal whenever D = O(n^1/4-ε) for any constant ε > 0 and is the first nearly optimal algorithm for general graphs whose diameter is Ω(n^δ) for any constant δ.

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

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

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

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

[5]  Richard Cole Correction: Parallel Merge Sort , 1993, SIAM J. Comput..

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

[7]  Avi Wigderson,et al.  The Complexity of Graph Connectivity , 1992, MFCS.

[8]  Thomas H. Spencer,et al.  Time-work tradeoffs for parallel algorithms , 1997, JACM.

[9]  Seth Pettie,et al.  Lower Bounds on Sparse Spanners, Emulators, and Diameter-reducing shortcuts , 2018, SWAT.

[10]  Richard Cole,et al.  Parallel merge sort , 1988, 27th Annual Symposium on Foundations of Computer Science (sfcs 1986).

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

[12]  Baruch Schieber,et al.  A sublinear space, polynomial time algorithm for directed s-t connectivity , 1992, [1992] Proceedings of the Seventh Annual Structure in Complexity Theory Conference.

[13]  Amir Abboud,et al.  Popular Conjectures Imply Strong Lower Bounds for Dynamic Problems , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

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

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

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

[17]  William Hesse,et al.  Directed graphs requiring large numbers of shortcuts , 2003, SODA '03.

[18]  Jeremy T. Fineman Nearly work-efficient parallel algorithm for digraph reachability , 2017, STOC.

[19]  Virginia Vassilevska Williams,et al.  Multiplying matrices faster than coppersmith-winograd , 2012, STOC '12.