We present an implementation and a brief 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 in the comparison-addition model, with running time $O(m \log^{2/3} n)$. We provide a faithful C++ implementation of this algorithm, following all structural details described in the original paper, and compare its empirical performance with the classical Dijkstra's algorithm using binary heaps. The experiments were conducted on both synthetic sparse random graphs and real-world road network instances from the DIMACS benchmark. Our implementation achieves the proposed running time in the worst case. However, our results show that, despite the new algorithm's superior asymptotic complexity, its large constant factors significantly affect its practical performance, making Dijkstra's algorithm faster for all tested sparse graph sizes, including instances with tens of millions of vertices. (This is a work in progress.)
翻译:本文介绍了针对单源最短路径(SSSP)问题,由Duan等人(2025)提出的确定性算法的实现与简要实验分析。该算法在比较-加法模型中达到了已知最佳渐近上界,运行时间为$O(m \\log^{2/3} n)$。我们依据原论文描述的结构细节,提供了该算法在C++语言中的忠实实现,并将其经验性能与基于二叉堆的经典Dijkstra算法进行了比较。实验在合成稀疏随机图以及DIMACS基准测试中的真实道路网络实例上进行。我们的实现实现了最坏情况下的理论运行时间。然而,结果表明,尽管新算法具有更优的渐近复杂度,但其较大的常数因子显著影响了实际性能,使得Dijkstra算法在所有测试的稀疏图规模(包括具有数千万顶点的实例)上均表现更快。(这是一项进行中的工作。)