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

最短路问题Dijkstra算法序列瓶颈的消除

Removing Sequential Bottleneck of Dijkstra's Algorithm for the Shortest Path Problem

Vijay K. Garg

摘要:

所有传统的计算最短路径的方法都依赖于边松弛,如果使用该边,则从源顶点到达顶点的成本可能会降低。我们介绍了一种方法,保持下界以及达到顶点的上界。该方法可以在一次迭代中找到多个顶点的最优代价,从而减少了Dijkstra算法中的顺序瓶颈。本文提出了四种算法- $SP_1$、$SP_2$、$SP_3$和$SP_4$。$SP_1$和$SP_2$减少了Dijkstra算法中堆操作的数量。对于有向无环图或有向无权图,它们的最优复杂度为$O(e)$,其中$e$是图中的边数,优于Dijkstra算法。对于一般图,它们的最坏情况复杂度与Dijkstra算法的顺序实现相匹配,但允许更大的并行性。算法$SP_3$和$SP_4$允许甚至更多的并行性,但具有更高的工作复杂性。算法$SP_3$需要$O(n + e(\max(\log n, Δ)))$工作,其中$n$是顶点数,$Δ$是节点的最大入度。算法$SP_4$具有最大的并行性。它需要$O(ne)$工作。这些算法推广了Crauser、Mehlhorn、Meyer和Sanders关于并行化Dijkstra算法的工作。

英文摘要:

All traditional methods of computing shortest paths depend upon edge-relaxation where the cost of reaching a vertex from a source vertex is possibly decreased if that edge is used. We introduce a method which maintains lower bounds as well as upper bounds for reaching a vertex. This method enables one to find the optimal cost for multiple vertices in one iteration and thereby reduces the sequential bottleneck in Dijkstra's algorithm. We present four algorithms in this paper --- $SP_1$, $SP_2$, $SP_3$ and $SP_4$. $SP_1$ and $SP_2$ reduce the number of heap operations in Dijkstra's algorithm. For directed acyclic graphs, or directed unweighted graphs they have the optimal complexity of $O(e)$ where $e$ is the number of edges in the graph which is better than that of Dijkstra's algorithm. For general graphs, their worst case complexity matches that of Dijkstra's algorithm for a sequential implementation but allows for greater parallelism. Algorithms $SP_3$ and $SP_4$ allow for even more parallelism but with higher work complexity. Algorithm $SP_3$ requires $O(n + e(\max(\log n, Δ)))$ work where $n$ is the number of vertices and $Δ$ is the maximum in-degree of a node. Algorithm $SP_4$ has the most parallelism. It requires $O(ne)$ work. These algorithms generalize the work by Crauser, Mehlhorn, Meyer, and Sanders on parallelizing Dijkstra's algorithm.

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

↑