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

针对实际性能优化Dijkstra

Optimizing Dijkstra for real-world performance

Nimrod Aviram, Yuval Shavitt

摘要:

使用Dijkstra算法计算图中从单个源节点到所有其他节点的最短路径是工业界和学术界的常见做法。虽然算法的原始描述建议使用斐波那契堆作为其内部队列,但已经注意到,在实践中,二进制(或$d$ -ary)堆实现要快得多。本文介绍了一个更快的队列设计的算法。目前,我们的实验结果使我们的原型实现在现实世界和生成的大型图上的算法的Boost实现速度大约是两倍。此外,这个初步实现是由一个程序员在几周内编写的。事实上,这样一个早期的原型与Boost(一个由专家程序员开发的著名开源库)相比是有利的,这让我们有理由相信我们的队列设计确实更适合手头的问题,并且有利的时间测量不是我们采用的任何特定实现技术的产物。

英文摘要:

Using Dijkstra's algorithm to compute the shortest paths in a graph from a single source node to all other nodes is common practice in industry and academia. Although the original description of the algorithm advises using a Fibonacci Heap as its internal queue, it has been noted that in practice, a binary (or $d$-ary) heap implementation is significantly faster. This paper introduces an even faster queue design for the algorithm. Our experimental results currently put our prototype implementation at about twice as fast as the Boost implementation of the algorithm on both real-world and generated large graphs. Furthermore, this preliminary implementation was written in only a few weeks, by a single programmer. The fact that such an early prototype compares favorably against Boost, a well-known open source library developed by expert programmers, gives us reason to believe our design for the queue is indeed better suited to the problem at hand, and the favorable time measurements are not a product of any specific implementation technique we employed.

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

↑