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

Dijkstra单源最短路算法的更精确性

More Parallelism in Dijkstra's Single-Source Shortest Path Algorithm

Michael Kainer, Jesper Larsson Träff

摘要:

Dijkstra的单源最短路径(SSSP)问题的算法在$o(n)$深度($n$是输入图中的顶点数)上很难并行化,而不会不合理地增加所需的并行工作。克劳泽等人(1998)提出的观察结果允许一次识别多于一个的顶点作为正确的,并且相应地同时放松更多的边。他们的算法在并行阶段中运行,并且对于某些随机图,他们表明阶段的数量是$O(n^{1/3})$,具有很高的概率。一个工作效率的CRCW PRAM与此深度,但没有实现一个真正的,并行系统。在本文中,我们加强了克劳泽等人的标准,并讨论在其实施过程中工作和阶段数之间的权衡。我们目前的模拟结果与一系列常见的输入图形的深度,一个理想的并行算法,可以应用的标准,在没有成本和并行松弛没有冲突可以实现。这些结果表明,相位数确实是$n$的一个小根,但仍然偏离也可以计算的最短路径长度下限。我们给出了一个共享内存并行实现的最有效的工作版本的Dijkstra的算法运行在并行阶段,我们比较自己的实现著名的$Δ$步进算法。我们可以证明,采用Crauser等人的标准的工作效率SSSP算法与$Δ$ -在我们选择的输入图上步进有竞争力,并且往往更好。尽管没有提供关于所需相位数量的$o(n)$保证,但允许许多正确顶点的并发松弛的标准可能是实际快速并行SSSP实现的可行方法。

英文摘要:

Dijkstra's algorithm for the Single-Source Shortest Path (SSSP) problem is notoriously hard to parallelize in $o(n)$ depth, $n$ being the number of vertices in the input graph, without increasing the required parallel work unreasonably. Crauser et al.\ (1998) presented observations that allow to identify more than a single vertex at a time as correct and correspondingly more edges to be relaxed simultaneously. Their algorithm runs in parallel phases, and for certain random graphs they showed that the number of phases is $O(n^{1/3})$ with high probability. A work-efficient CRCW PRAM with this depth was given, but no implementation on a real, parallel system. In this paper we strengthen the criteria of Crauser et al., and discuss tradeoffs between work and number of phases in their implementation. We present simulation results with a range of common input graphs for the depth that an ideal parallel algorithm that can apply the criteria at no cost and parallelize relaxations without conflicts can achieve. These results show that the number of phases is indeed a small root of $n$, but still off from the shortest path length lower bound that can also be computed. We give a shared-memory parallel implementation of the most work-efficient version of a Dijkstra's algorithm running in parallel phases, which we compare to an own implementation of the well-known $Δ$-stepping algorithm. We can show that the work-efficient SSSP algorithm applying the criteria of Crauser et al. is competitive to and often better than $Δ$-stepping on our chosen input graphs. Despite not providing an $o(n)$ guarantee on the number of required phases, criteria allowing concurrent relaxation of many correct vertices may be a viable approach to practically fast, parallel SSSP implementations.

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

↑