Log Diameter Rounds Algorithms for 2-Vertex and 2-Edge Connectivity

Alexandr Andoni, Clifford Stein, Peilin Zhong

Introduction

In the era of massive data, graphs representing social networks, web links, and biological systems have grown too large for single-machine processing. These datasets are typically handled by distributed frameworks like MapReduce, Hadoop, or Apache Spark. The Massively Parallel Computation (MPC) model serves as the theoretical foundation for these systems, where computation occurs in synchronous rounds across multiple machines, each with limited local memory.

A central challenge in the MPC model is developing algorithms that are both fast (running in few rounds) and memory-efficient (using strictly linear total space). While significant progress has been made in standard graph connectivity, this paper addresses the more complex problems of 2-edge connectivity (identifying bridges) and 2-vertex connectivity (identifying cut vertices and biconnected components).

The Problem: Beyond Standard Connectivity

Standard connectivity asks if a path exists between two nodes. 2-connectivity asks about the robustness of that path:

  1. 2-Edge Connectivity: Identifying edges whose removal would disconnect the graph (bridges).
  2. 2-Vertex Connectivity (Biconnectivity): Identifying vertices whose removal would disconnect the graph (cut vertices) and grouping edges into components that remain connected even if any single vertex is removed.

Previous parallel algorithms for these problems often relied on the PRAM model, which assumes shared memory—a luxury not available in the MPC model. Existing MPC adaptations often suffered from high memory overhead, typically requiring $O(n \log n)$ total space, which is prohibitive for the largest graphs.

Methodology

The authors adapt the classic Tarjan-Vishkin framework for the MPC model, introducing several technical innovations to maintain linear space and minimize round complexity.

1. The Bi-diameter Parameter

Just as the diameter ($D$) of a graph determines the speed of standard connectivity algorithms, the authors introduce the bi-diameter ($D'$). This is defined as the maximum length of the shortest simple cycle containing any two vertices within the same biconnected component. By parameterizing the runtime based on $D$ and $D'$, the authors provide a more granular understanding of algorithm performance on different graph topologies.

2. Linear-Space Tree Compression

To identify biconnected components, the algorithm must perform complex operations on a spanning tree, such as finding Least Common Ancestors (LCA). Traditional MPC methods used "doubling" techniques that required $O(n \log D)$ space. To achieve strictly linear space ($O(n + m)$), the authors developed a novel tree compression technique. They compress the tree to $n / \log D$ vertices, apply doubling to the reduced set, and use a leaf-sampling framework to generate a Depth-First-Search (DFS) sequence without memory expansion.

3. Range Minimum Queries (RMQ)

With the DFS sequence established, the problem of finding bridges and cut vertices is reduced to Range Minimum Queries. The authors demonstrate that these queries can be executed in $O(1)$ parallel rounds using linear total space, completing the algorithmic pipeline.

Key Results

The paper establishes new upper and lower bounds for 2-connectivity in the MPC model:

  • 2-Edge Connectivity: The algorithm finds all bridges in $O(\log D \log \log_{m/n} n)$ rounds, matching the current state-of-the-art for standard connectivity.
  • Biconnectivity: The algorithm identifies biconnected components in $O(\log D \log^2 \log_{m/n} n + \log D' \log \log_{m/n} n)$ rounds.
  • DFS Sequence Subroutine: A standalone contribution is the ability to compute a tree's DFS sequence in $O(\log D)$ rounds using strictly linear space.
  • Conditional Hardness: The authors prove an $\Omega(\log D')$ conditional lower bound. This suggests that the dependence on bi-diameter is not an algorithmic weakness but a fundamental requirement of the problem in the MPC model.

Conclusion

This work successfully bridges the gap between theoretical parallel algorithms and the practical constraints of distributed systems. By breaking the $O(n \log n)$ space barrier and introducing the bi-diameter parameter, the authors provide a scalable path for analyzing the structural robustness of massive graphs. Future research may focus on closing the remaining logarithmic gaps in biconnectivity runtimes and implementing these algorithms in production environments like Apache Spark to measure real-world performance.

Summary updated

Abstract

Many modern parallel systems, such as MapReduce, Hadoop and Spark, can be modeled well by the MPC model. The MPC model captures well coarse-grained computation on large data - data is distributed to processors, each of which has a sublinear (in the input data) amount of memory and we alternate between rounds of computation and rounds of communication, where each machine can communicate an amount of data as large as the size of its memory. This model is stronger than the classical PRAM model, and it is an intriguing question to design algorithms whose running time is smaller than in the PRAM model. In this paper, we study two fundamental problems, 2-edge connectivity and 2-vertex connectivity (biconnectivity). PRAM algorithms which run in O(log n) time have been known for many years. We give algorithms using roughly log diameter rounds in the MPC model. Our main results are, for an n-vertex, m-edge graph of diameter D and bi-diameter D', 1) a O(log D log log_{m/n} n) parallel time 2-edge connectivity algorithm, 2) a O(log D log^2 log_{m/n}n+log D'log log_{m/n}n) parallel time biconnectivity algorithm, where the bi-diameter D' is the largest cycle length over all the vertex pairs in the same biconnected component. Our results are fully scalable, meaning that the memory per processor can be O(n^{delta}) for arbitrary constant delta>0, and the total memory used is linear in the problem size. Our 2-edge connectivity algorithm achieves the same parallel time as the connectivity algorithm of [Andoni et al., 2018]. We also show an Omega(log D') conditional lower bound for the biconnectivity problem.
BibTeX
@inproceedings{andoni2019log,
  author = {Alexandr Andoni and Clifford Stein and Peilin Zhong},
  title = {{Log Diameter Rounds Algorithms for 2-Vertex and 2-Edge Connectivity}},
  booktitle = {ICALP},
  year = {2019},
  url = {https://openreview.net/forum?id=vsvV2aZgs6-},
}
Figure