Implementation and Brief Experimental Analysis of the Duan et al. (2025) Algorithm for Single-Source Shortest Paths
Lucas Castro, Thailsson Clementino, Rosiane de Freitas

TL;DR
This paper implements and tests Duan et al.'s 2025 algorithm for the Single-Source Shortest Path problem, revealing that large constant factors limit its practical advantage over Dijkstra's algorithm despite favorable asymptotic bounds.
Contribution
It provides the first practical C++ implementation of Duan et al.'s algorithm and compares its performance with Dijkstra's algorithm on large graphs.
Findings
The algorithm matches theoretical complexity but has large constant factors.
Dijkstra's algorithm is 3-4 times faster in tested scenarios.
The new algorithm would need an astronomically large number of vertices to outperform Dijkstra's.
Abstract
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 . We provide a worst-case C++ implementation of this algorithm utilizing space, as well as a variant that reduces memory usage to 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Management and Algorithms · Complexity and Algorithms in Graphs · Cryptography and Data Security
