Near-Optimal Massively Parallel Graph Connectivity
arXiv:1910.05385
Abstract
Identifying the connected components of a graph, apart from being a fundamental problem with countless applications, is a key primitive for many other algorithms. In this paper, we consider this problem in parallel settings. Particularly, we focus on the Massively Parallel Computations (MPC) model, which is the standard theoretical model for modern parallel frameworks such as MapReduce, Hadoop, or Spark. We consider the truly sublinear regime of MPC for graph problems where the space per machine is for some desirably small constant . We present an algorithm that for graphs with diameter in the wide range , takes rounds to identify the connected components and takes rounds for all other graphs. The algorithm is randomized, succeeds with high probability, does not require prior knowledge of , and uses an optimal total space of . We complement this by showing a conditional lower-bound based on the widely believed TwoCycle conjecture that rounds are indeed necessary in this setting. Studying parallel connectivity algorithms received a resurgence of interest after the pioneering work of Andoni et al. [FOCS 2018] who presented an algorithm with round-complexity. Our algorithm improves this result for the whole range of values of and almost settles the problem due to the conditional lower-bound. Additionally, we show that with minimal adjustments, our algorithm can also be implemented in a variant of the (CRCW) PRAM in asymptotically the same number of rounds.
arXiv commentA preliminary version of this paper is to appear in the proceedings of The 60th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2019)
References in corpus (6)
- Spectra of "Real-World" Graphs: Beyond the Semi-Circle Law
- Massively Parallel Algorithms and Hardness for Single-Linkage Clustering Under -Distances
- Matching and MIS for Uniformly Sparse Graphs in the Low-Memory MPC Model
- Connected Components at Scale via Local Contractions
- Massively Parallel Symmetry Breaking on Sparse Graphs: MIS and Maximal Matching
- Connected Components on a PRAM in Log Diameter Time