English

Parallel Reachability in Almost Linear Work and Square Root Depth

Data Structures and Algorithms 2019-12-09 v4

Abstract

In this paper we provide a parallel algorithm that given any nn-node mm-edge directed graph and source vertex ss computes all vertices reachable from ss with O~(m)\tilde{O}(m) work and n1/2+o(1)n^{1/2 + o(1)} depth with high probability in nn . This algorithm also computes a set of O~(n)\tilde{O}(n) edges which when added to the graph preserves reachability and ensures that the diameter of the resulting graph is at most n1/2+o(1)n^{1/2 + o(1)}. Our result improves upon the previous best known almost linear work reachability algorithm due to Fineman which had depth O~(n2/3)\tilde{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 nn-node digraph of undirected hop-diameter DD solves the single source reachability problem with O~(n1/2+n1/3+o(1)D2/3)\tilde{O}(n^{1/2} + n^{1/3 + o(1)} D^{2/3}) rounds of the communication in the CONGEST model with high probability in nn. Our algorithm is nearly optimal whenever D=O(n1/4ϵ)D = O(n^{1/4 - \epsilon}) for any constant ϵ>0\epsilon > 0 and is the first nearly optimal algorithm for general graphs whose diameter is Ω(nδ)\Omega(n^\delta) for any constant δ\delta.

Keywords

Cite

@article{arxiv.1905.08841,
  title  = {Parallel Reachability in Almost Linear Work and Square Root Depth},
  author = {Arun Jambulapati and Yang P. Liu and Aaron Sidford},
  journal= {arXiv preprint arXiv:1905.08841},
  year   = {2019}
}

Comments

38 pages. v2 fixes a small typo in Section 4 found by Aaron Bernstein. v3 fixes some overflow issues. v4 fixes the proof of Lemma 5.1. We thank Aaron Bernstein for pointing this out

R2 v1 2026-06-23T09:16:22.767Z