arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2105.06145cs.DScs.DC
收藏

并行最短路径的有效步进算法及实现

Efficient Stepping Algorithms and Implementations for Parallel Shortest Paths

Xiaojun Dong, Yan Gu, Yihan Sun, Yunming Zhang

摘要:

在本文中,我们研究的单源最短路径(SSSP)问题,这是一个众所周知的困难问题,在并行环境中的正边权重。在实际应用中,Meyer和Sanders提出的$Δ$ -步进算法被广泛采用.然而,$Δ$ -步进没有已知的一般图的最坏情况的界限。$Δ$步进的性能也高度依赖于参数$Δ$。也有许多算法具有理论上的界限,例如半径步进,但它们要么没有可用的实现,要么在实践中比$Δ$步进慢得多。我们提出了一个步进算法框架,推广现有的算法,如$Δ$步进和半径步进。该框架允许对所有步进算法进行类似的分析和实现。我们还提出了一个新的ADT,延迟批处理优先级队列(LaB-PQ),抽象的语义所需的步进算法的优先级队列。我们提供了两个数据结构的LaB-PQ,分别侧重于理论和实践效率。基于新的框架和LaB-PQ,我们提出了两个新的步进算法,$ρ$ -步进和$Δ^*$ -步进,这是简单的,与非平凡的最坏情况下的界限,并在实践中快速。步进算法框架还为三种算法提供了几乎相同的实现:Bellman-Ford、$Δ^*$ -步进和$ρ$ -步进。我们比较我们的代码与四个国家的最先进的实现。在五个社交和网络图上,$ρ$步进比所有现有实现快1.3- 2.5倍。在两个路径图上,我们的$Δ^*$ -步进至少比现有的实现快14\%,而$ρ$ -步进也是有竞争力的。步进算法的几乎相同的实现也允许在实践中步进算法之间进行深入的分析和比较。

英文摘要:

In this paper, we study the single-source shortest-path (SSSP) problem with positive edge weights, which is a notoriously hard problem in the parallel context. In practice, the $Δ$-stepping algorithm proposed by Meyer and Sanders has been widely adopted. However, $Δ$-stepping has no known worst-case bounds for general graphs. The performance of $Δ$-stepping also highly relies on the parameter $Δ$. There have also been lots of algorithms with theoretical bounds, such as Radius-stepping, but they either have no implementations available or are much slower than $Δ$-stepping in practice. We propose a stepping algorithm framework that generalizes existing algorithms such as $Δ$-stepping and Radius-stepping. The framework allows for similar analysis and implementations of all stepping algorithms. We also propose a new ADT, lazy-batched priority queue (LaB-PQ), that abstracts the semantics of the priority queue needed by the stepping algorithms. We provide two data structures for LaB-PQ, focusing on theoretical and practical efficiency, respectively. Based on the new framework and LaB-PQ, we show two new stepping algorithms, $ρ$-stepping and $Δ^*$-stepping, that are simple, with non-trivial worst-case bounds, and fast in practice. The stepping algorithm framework also provides almost identical implementations for three algorithms: Bellman-Ford, $Δ^*$-stepping, and $ρ$-stepping. We compare our code with four state-of-the-art implementations. On five social and web graphs, $ρ$-stepping is 1.3--2.5x faster than all the existing implementations. On two road graphs, our $Δ^*$-stepping is at least 14\% faster than existing implementations, while $ρ$-stepping is also competitive. The almost identical implementations for stepping algorithms also allow for in-depth analyses and comparisons among the stepping algorithms in practice.

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

↑