具有非负边权的单源最短路径问题(SSSP)是一个众所周知的难以并行有效求解的问题-它是图问题中的传递闭包瓶颈问题之一。在实践中,Meyer和Sanders的$Δ$步进算法(J. Algorithms,2003)通常有效,但在一般图上没有已知的理论界限。该算法执行一系列步骤,每个步骤将半径增加用户指定的值$Δ$。每个步骤将顶点设置在其环中,但可以采取$Θ(n)$子步骤,每个子步骤都需要$Θ(m)$工作($n$顶点和$m$边)。在本文中,我们描述了半径步进,一个最有名的权衡SSSP与近线性($\otilde(m)$)的工作和深度界限的算法。该算法是一个$Δ$ -步进式算法,但使用一个变量,而不是固定大小的半径增加,使我们能够证明的步骤数的界限。特别地,通过使用我们定义为顶点$k$ -半径的东西,每一步最多需要$k+2$子步。此外,我们定义了一个$(k, ρ)$ -图的属性,并表明,如果一个无向图具有此属性,那么步骤的数量可以有界的$O(\frac{n}ρ \log ρL)$,总的$O(\frac{kn}ρ \log ρL)$子步骤,每个平行。我们描述了如何预处理一个图具有此属性。总之,半径步进在预处理后对每个源进行$O((m+n\log n)\log \frac{n}ρ)$工作和$O(\frac{n}ρ\log n \log (ρL))$深度。预处理步骤可以在$O(m\log n + nρ^2)$工作和$O(ρ^2)$深度中或在$O(m\log n + nρ^2\log n)$工作和$O(ρ\log ρ)$深度中完成,并且添加不超过$O(nρ)$边缘。
英文摘要:
The single-source shortest path problem (SSSP) with nonnegative edge weights is a notoriously difficult problem to solve efficiently in parallel---it is one of the graph problems said to suffer from the transitive-closure bottleneck. In practice, the $Δ$-stepping algorithm of Meyer and Sanders (J. Algorithms, 2003) often works efficiently but has no known theoretical bounds on general graphs. The algorithm takes a sequence of steps, each increasing the radius by a user-specified value $Δ$. Each step settles the vertices in its annulus but can take $Θ(n)$ substeps, each requiring $Θ(m)$ work ($n$ vertices and $m$ edges).
In this paper, we describe Radius-Stepping, an algorithm with the best-known tradeoff between work and depth bounds for SSSP with nearly-linear ($\otilde(m)$) work. The algorithm is a $Δ$-stepping-like algorithm but uses a variable instead of fixed-size increase in radii, allowing us to prove a bound on the number of steps. In particular, by using what we define as a vertex $k$-radius, each step takes at most $k+2$ substeps. Furthermore, we define a $(k, ρ)$-graph property and show that if an undirected graph has this property, then the number of steps can be bounded by $O(\frac{n}ρ \log ρL)$, for a total of $O(\frac{kn}ρ \log ρL)$ substeps, each parallel. We describe how to preprocess a graph to have this property. Altogether, Radius-Stepping takes $O((m+n\log n)\log \frac{n}ρ)$ work and $O(\frac{n}ρ\log n \log (ρL))$ depth per source after preprocessing. The preprocessing step can be done in $O(m\log n + nρ^2)$ work and $O(ρ^2)$ depth or in $O(m\log n + nρ^2\log n)$ work and $O(ρ\log ρ)$ depth, and adds no more than $O(nρ)$ edges.