识别图的连通分量,除了是无数应用的基本问题之外,也是许多其他算法的关键基础。在本文中,我们考虑这个问题在并行设置。特别是,我们专注于大规模并行计算(MPC)模型,这是现代并行框架(如MapReduce,Hadoop或Spark)的标准理论模型。我们认为真正的次线性制度MPC的图形问题,每台机器的空间是$n^δ$的一些理想的小常数$δ\in (0, 1)$。我们提出了一个算法,对于直径$D$在宽范围$[\log^ε n, n]$的图,采取$O(\log D)$轮,以确定连通组件和采取$O(\log \log n)$轮的所有其他图。该算法是随机的,成功的概率高,不需要$D$的先验知识,并使用$O(m)$的最佳总空间。我们补充这一点,显示了一个条件下限的基础上,广泛认为TwoCycle猜想,$Ω(\log D)$轮确实是必要的,在这种情况下。在Andoni等人的开创性工作[FOCS 2018]之后,研究并行连接算法重新受到关注,他们提出了一种具有$O(\log D \cdot \log \log n)$轮复杂度的算法。我们的算法改进了这一结果的$D$值的整个范围内,几乎解决了问题,由于条件下限。此外,我们表明,以最小的调整,我们的算法也可以实现在一个变种的(CRCW)PRAM在渐近相同数量的回合。
英文摘要:
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 $n^δ$ for some desirably small constant $δ\in (0, 1)$.
We present an algorithm that for graphs with diameter $D$ in the wide range $[\log^ε n, n]$, takes $O(\log D)$ rounds to identify the connected components and takes $O(\log \log n)$ rounds for all other graphs. The algorithm is randomized, succeeds with high probability, does not require prior knowledge of $D$, and uses an optimal total space of $O(m)$. We complement this by showing a conditional lower-bound based on the widely believed TwoCycle conjecture that $Ω(\log D)$ 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 $O(\log D \cdot \log \log n)$ round-complexity. Our algorithm improves this result for the whole range of values of $D$ 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.
Improved Deterministic Connectivity in Massively Parallel Computation
关于大规模并行计算模型中的连接性的一系列研究在Andoni等人的开创性工作中达到了高潮。[FOCS'18]和Behnezhad等人。[FOCS'19]。他们提供了一个低空间MPC的随机算法,并证明是最佳的轮复杂度$O(\log D + \log \log_{\frac m n} n)$和$O(m)$空间,对于图的$n$顶点与$m$边和直径$D$。令人惊讶的是,Coy和Czumaj [STOC'22]最近的结果显示了如何确定性地实现相同的结果。然而,不幸的是,他们的算法遭受大的本地计算时间。我们提出了一个确定性的连接算法,匹配的所有参数的随机算法,此外,显着减少了本地计算时间接近线性。我们的去随机化方法是基于减少所需的随机性,以允许一个更简单的高效搜索。虽然类似的随机性减少方法已经使用过,我们的结果不仅是惊人的简单,但它是第一个有效率的本地计算。这就是为什么我们认为它可以作为系统开发低内存MPC中计算高效的去随机化方法的起点。