Computing shortest distances is a different task from sorting all vertices by distance.
The problem and the implementation
Single-source shortest paths (SSSP) asks for the shortest distance from one vertex to every other vertex. Let n be the vertex count and m the edge count. This post considers directed graphs with nonnegative real edge weights.
Dijkstra's algorithm repeatedly selects the nearest unsettled vertex. Its running-time bound depends on the priority queue. The O(m + n log n) bound uses a structure such as a Fibonacci heap. A binary heap gives O((m + n) log n).
| Comparison | Time complexity | Meaning |
|---|---|---|
| Dijkstra with a binary heap | O((m + n) log n) | Includes heap work for relaxation and minimum extraction |
| Dijkstra with a Fibonacci heap | O(m + n log n) | Reduces the amortized cost of decrease-key |
| Duan et al., STOC 2025 | O(m log^(2/3) n) | Deterministic SSSP in the comparison-addition model |
The last row is the result in the STOC 2025 proceedings. The authors' paper counts comparisons and additions on weights as unit-cost operations. Algorithms specialized for integer weights or problems allowing negative edges use different conditions.
Reducing sorting work
Dijkstra produces the distance order of vertices as well as their distances. A task that requires only distances does not require that complete order. This difference allows an algorithm to avoid sorting work.
The paper recursively solves bounded multi-source shortest-path problems, called BMSSP. A limited number of relaxation rounds separates work that can be completed from pivots that need further processing. This construction reduces the work of extracting every vertex individually from a global priority queue.
flowchart LR
A["Subproblem with a distance bound"] --> B["Perform bounded relaxation"]
B --> C["Select pivots needing more work"]
C --> D["Solve smaller subproblems recursively"]
D --> E["Finalize shortest distances"]
This diagram is a technical outline. Termination and distance correctness depend on the recursive invariants and proofs in the paper. An arbitrary combination of relaxation and pivot selection does not have the same bound.
What the proof establishes
On sparse graphs, Dijkstra's n log n term matters, and the new bound improves it asymptotically. On very dense graphs, however, O(m log^(2/3) n) is not always smaller than O(m + n log n). The result does not establish that the new algorithm is faster on every graph.
The paper appears in the STOC Best Papers session. This shows review and recognition of its theoretical contribution. It does not certify execution time on a particular server or the maturity of an implementation. This post does not independently reconstruct the proof or benchmark the algorithm.
An adoption decision needs time and memory measurements on the same graphs, weight representation, and hardware. An asymptotic table alone does not determine whether an existing implementation should be replaced or retained.
Summary
Dijkstra's O(m + n log n) bound is different from the binary-heap bound. The STOC 2025 result gives a deterministic SSSP bound for directed graphs with nonnegative real weights without producing the complete distance order. Its asymptotic improvement matters on sparse graphs and does not imply a running-time advantage for a particular implementation.