arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.10034cs.DSmath.CO
收藏

Dijkstra算法使用Fibonacci堆、二叉堆和自平衡二叉树的比较

A Comparison of Dijkstra's Algorithm Using Fibonacci Heaps, Binary Heaps, and Self-Balancing Binary Trees

Rhyd Lewis

摘要:

本文描述了加权图中的最短路径问题,并研究了使用Dijkstra算法与Fibonacci堆,二叉堆和自平衡二叉树时发生的效率差异。使用这些算法变体的C++实现,我们发现最快的方法并不总是具有最低渐近复杂度的方法。对此原因进行了讨论,并与经验证据支持。

英文摘要:

This paper describes the shortest path problem in weighted graphs and examines the differences in efficiency that occur when using Dijkstra's algorithm with a Fibonacci heap, binary heap, and self-balancing binary tree. Using C++ implementations of these algorithm variants, we find that the fastest method is not always the one that has the lowest asymptotic complexity. Reasons for this are discussed and backed with empirical evidence.

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

↑