Duan等(2025)算法单源最短路径问题的实现与简要实验分析
Implementation and Brief Experimental Analysis of the Duan et al. (2025) Algorithm for Single-Source Shortest Paths
AI总结:
本文实现并分析了Duan等(2025)提出的单源最短路径算法,发现其理论性能虽优,但实际应用中常数因子过大,Dijkstra算法仍更高效。
摘要:
我们提出了Duan等(2025)为单源最短路径(SSSP)问题提出确定性算法的实现和实验分析,该算法达到了最佳已知的渐近上界O(m log^{2/3} n)。我们提供了一个最坏情况的C++实现,使用O(n log^{1/3} n)空间,以及一个变体,将内存使用减少到O(n),同时保持期望时间复杂度相同。我们比较了这些实现与Dijkstra算法在稀疏随机图、网格和美国道路网络(最多1000万顶点)上的表现。我们的结果表明,尽管这些实现符合其理论复杂度界限,但较大的常数因子阻碍了其实际应用;Dijkstra算法在所有测试场景中仍快3到4倍。此外,我们估计,顶点数量需要远超10^{67}时,最坏情况的实现才能胜过Dijkstra。这些发现表明,在实际应用中,需要大幅减少常数因子,才能使这一理论突破取代已建立的方法。
英文摘要:
We present an implementation and experimental analysis of the deterministic algorithm proposed by Duan et al. (2025) for the Single-Source Shortest Path (SSSP) problem, which achieves the best-known asymptotic upper bound of $O(m \log^{2/3} n)$. We provide a worst-case C++ implementation of this algorithm utilizing $O(n \log^{1/3} n)$ space, as well as a variant that reduces memory usage to $O(n)$ while maintaining the same time complexity in expectation. We compare these implementations against Dijkstra's algorithm on sparse random graphs, grids, and U.S. road networks with up to 10 million vertices. Our results show that while the implementations adhere to their theoretical complexity bounds, large constant factors hinder their practical utility; Dijkstra's algorithm remains 3 to 4 times faster in all tested scenarios. Furthermore, we estimate that the number of vertices would need to vastly exceed $10^{67}$ for the worst-case implementation to outperform Dijkstra's. These findings suggest that a substantial reduction in constant factors is required before this theoretical breakthrough can displace established methods in practical applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。