arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.01700cs.DS
收藏

有向图可达性的近似工作有效并行算法

Nearly Work-Efficient Parallel Algorithm for Digraph Reachability

Jeremy T. Fineman

摘要:

有向图上最简单的问题之一是确定从指定的源顶点可达的顶点集。这个问题可以很容易地通过执行图搜索来解决,但是高效的并行算法已经困扰了研究人员几十年。对于稀疏的高直径图,特别是,有没有已知的工作效率的并行算法与非平凡的并行。这相当于并行图算法中最基本的开放问题之一:是否有一个并行算法的有向图可达性与近线性工作?本文表明,答案是肯定的。本文提出了一种随机并行算法,用于求解任意具有$m$弧和$n$顶点的图上的有向图的可达性及相关问题,算法的期望工作量为$\tilde{O}(m)$,跨度为$\tilde{O}(n^{2/3})$,从而具有并行性$\tildeΩ(n^{1/3})$.这是第一个并行算法,具有近线性工作和强次线性跨度。该算法可以扩展到产生有向生成树,确定图是否是无环的,拓扑排序图的强连通分量,或产生强连通图的有向耳分解,所有这些都具有类似的工作和跨度。主要的技术贡献是\emph{efficient}蒙特卡罗算法,通过添加$\tilde{O}(n)$快捷方式,以高概率将图的直径减小到$\tilde{O}(n^{2/3})$。虽然串行和并行算法都具有这些组合特性,但即使是顺序算法也不是有效的。本文提出了一个令人惊讶的简单的顺序算法,实现了规定的直径减少和运行在$\tilde{O}(m)$的时间。对该算法进行优化可以产生主要结果,但这样做还需要克服其他几个挑战。

英文摘要:

One of the simplest problems on directed graphs is that of identifying the set of vertices reachable from a designated source vertex. This problem can be solved easily sequentially by performing a graph search, but efficient parallel algorithms have eluded researchers for decades. For sparse high-diameter graphs in particular, there is no known work-efficient parallel algorithm with nontrivial parallelism. This amounts to one of the most fundamental open questions in parallel graph algorithms: Is there a parallel algorithm for digraph reachability with nearly linear work? This paper shows that the answer is yes. This paper presents a randomized parallel algorithm for digraph reachability and related problems with expected work $\tilde{O}(m)$ and span $\tilde{O}(n^{2/3})$, and hence parallelism $\tildeΩ(n^{1/3})$, on any graph with $n$ vertices and $m$ arcs. This is the first parallel algorithm having both nearly linear work and strongly sublinear span. The algorithm can be extended to produce a directed spanning tree, determine whether the graph is acyclic, topologically sort the strongly connected components of the graph, or produce a directed ear decomposition of a strongly connected graph, all with similar work and span. The main technical contribution is an \emph{efficient} Monte Carlo algorithm that, through the addition of $\tilde{O}(n)$ shortcuts, reduces the diameter of the graph to $\tilde{O}(n^{2/3})$ with high probability. While both sequential and parallel algorithms are known with those combinatorial properties, even the sequential algorithms are not efficient. This paper presents a surprisingly simple sequential algorithm that achieves the stated diameter reduction and runs in $\tilde{O}(m)$ time. Parallelizing that algorithm yields the main result, but doing so involves overcoming several other challenges.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑