[Paper Review] Parallel Reachability in Almost Linear Work and Square Root Depth
This paper presents a parallel algorithm for single-source reachability in directed graphs that achieves nearly linear work ($\widetilde{O}(m)$) and near-optimal depth ($n^{1/2+o(1)}$) with high probability. It introduces a novel shortcutting technique to reduce graph diameter, enabling efficient distributed computation in the CONGEST model with $\widetilde{O}(n^{1/2} + n^{1/3+o(1)}D^{2/3})$ rounds, which is nearly optimal for graphs with diameter $D = O(n^{1/4-\varepsilon})$. The approach combines random sampling, hierarchical decomposition, and recursive diameter reduction via shortcut edges to achieve these bounds.
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 $ ilde{O}(m)$ work and $n^{1/2 + o(1)}$ depth with high probability in $n$ . This algorithm also computes a set of $ ilde{O}(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 which had depth $ ilde{O}(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 $ ilde{O}(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 $δ$.
Motivation & Objective
- To design a parallel algorithm for single-source reachability with nearly linear work and sublinear depth, improving upon the previous best depth of $\widetilde{O}(n^{2/3})$.
- To develop a distributed algorithm in the CONGEST model that achieves nearly optimal round complexity for general directed graphs, especially when the undirected hop-diameter $D$ is large.
- To construct a small set of shortcut edges that preserve reachability while reducing the graph diameter to $n^{1/2+o(1)}$ with high probability.
- To bridge the gap between theoretical lower bounds and practical performance in distributed and parallel reachability by leveraging hopsets and recursive decomposition.
Proposed method
- Use random vertex sampling to construct a skeleton graph $G_T$ with $\widetilde{O}(n)$ vertices, where edges represent short paths of length at most $h$ in the original graph.
- Apply a recursive parallel diameter reduction algorithm, $\textsc{ParallelDiam}$, on the skeleton graph to reduce its diameter to $n^{1/2+o(1)}$ using $\widetilde{O}(n)$ shortcut edges.
- Leverage the fact that reachability in a graph of diameter $D$ can be computed in $O(D)$ depth with $O(m)$ work, so reducing diameter enables faster reachability computation.
- Simulate the parallel algorithm in the CONGEST model by globally broadcasting reachability information and shortcut updates after each parallel depth step, using $\widetilde{O}(\alpha)$ messages per round.
- Optimize the parameter $\alpha$ (size of the sampled set $T$) to balance communication cost and depth, achieving $\widetilde{O}(n^{1/2} + n^{1/3+o(1)}D^{2/3})$ rounds.
- Use a hierarchical decomposition strategy where each recursive subproblem maintains its own set of shortcuts and labels, with leaders coordinating parameter selection.
Experimental results
Research questions
- RQ1Can a parallel reachability algorithm achieve nearly linear work and depth sublinear in $n$, specifically $n^{1/2+o(1)}$?
- RQ2Is it possible to construct a small set of shortcut edges that reduce the diameter of any directed graph to $n^{1/2+o(1)}$ with high probability?
- RQ3Can such a diameter-reduction technique be used to design a nearly optimal distributed algorithm in the CONGEST model for single-source reachability?
- RQ4How does the round complexity of the distributed algorithm scale with the undirected hop-diameter $D$ of the graph?
- RQ5What is the trade-off between communication cost and depth in simulating a parallel algorithm in a distributed setting?
Key findings
- The paper presents a parallel reachability algorithm with $\widetilde{O}(m)$ work and $n^{1/2+o(1)}$ depth, improving upon the prior best depth of $\widetilde{O}(n^{2/3})$.
- The algorithm computes a set of $\widetilde{O}(n)$ shortcut edges that preserve reachability and reduce the graph diameter to $n^{1/2+o(1)}$ with high probability.
- The distributed algorithm in the CONGEST model runs in $\widetilde{O}(n^{1/2} + n^{1/3+o(1)}D^{2/3})$ rounds, which is nearly optimal when $D = O(n^{1/4-\varepsilon})$ for any constant $\varepsilon > 0$.
- For graphs with $D \geq n^{1/4}$, setting $\alpha = n^{2/3}/D^{2/3}$ yields a round complexity of $\widetilde{O}(D^{2/3}n^{1/3+o(1)})$, matching the best known lower bounds up to logarithmic factors.
- The algorithm achieves nearly optimal performance for general directed graphs with large diameter, being the first such nearly optimal algorithm for $D = \Omega(n^\delta)$ with constant $\delta > 0$.
- The simulation of the parallel algorithm in the CONGEST model incurs $\widetilde{O}(\alpha + D\alpha^{1/2+o(1)})$ rounds, which is optimized by balancing the sampling parameter $\alpha$.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.