computer scienceSolved recentlysince 1959
Beating Dijkstra after 66 years
Is the classic way to find the shortest route on a map really the fastest possible?
In 2025 researchers gave the first deterministic algorithm to beat Dijkstra's bound for shortest paths on sparse directed graphs, showing a textbook algorithm is not optimal.
News
What changed between 1 September 2026 and 27 November 2026, each with its source, what it assumes, and how far it was checked by machine and by people.
8 February 2026Claim
Duan, Mao, Shu and Yin claim a faster deterministic directed shortest-path algorithm
They claim O(m sqrt(log n) + sqrt(m n log n log log n)) time, O(m sqrt(log n log log n)) on sparse graphs, improving the 2025 O(m log^{2/3} n) bound. The arXiv page lists no journal reference; a search result pointed to an ICALP 2026 version that I did not open.
What it assumes: Comparison-addition model; non-negative real edge weights; author proofs
Last searched 27 November 2026. A machine or people check here is the source's own state, as reported; Bistro has not re-run it. All news
The story
Dijkstra's algorithm, published in 1959, finds the shortest route from one place to all others in a network with non-negative distances. With a good priority queue it runs in O(m + n log n) time, where n is the number of places and m the number of roads.
The n log n part comes from visiting places in sorted order of distance, and sorting n numbers by comparisons needs about n log n steps. Many believed this 'sorting barrier' was unavoidable. Duan, Mao, Mao, Shu and Yin found a way around it by not fully sorting, reaching O(m log^{2/3} n). Whether it is faster in practice is a separate question.
What is known
Each fact links to its source
- Duan, Mao, Mao, Shu and Yin give a deterministic algorithm for single-source shortest paths on directed graphs with non-negative real weights running in O(m log^{2/3} n) time in the comparison-addition model, the first to break Dijkstra's O(m + n log n) bound on sparse graphs. arXiv:2504.17033
- The paper was first submitted on 23 April 2025 and revised on 30 July 2025. arXiv:2504.17033
Milestones
The results already checked on the way to the goal, the published claims not yet checked by machine and by people, then the open steps, easiest first. Each step is a piece someone else can check.
Known
Edsger Dijkstra (1959) gave the shortest-path algorithm that visits places in order of distance from the source. It is the starting point every later bound is compared with. source
Known
Fredman and Tarjan (1987) used Fibonacci heaps to run Dijkstra in O(n log n + m) time, the bound that stood for 38 years as the best known on directed graphs. source
Known
Thorup (1999) showed that undirected graphs with positive integer weights allow shortest paths in linear time, avoiding sorting. The method does not cover real weights or directed graphs. source
Known
Pettie and Ramachandran (2005) beat Dijkstra on undirected graphs with real weights in the comparison-addition model, giving O(m log α(m,n)) after preprocessing. Directed graphs stayed out of reach. source
Known
Haeupler, Hladik, Rozhon, Tarjan and Tetek (2024) proved Dijkstra with a suitable heap is universally optimal, if the algorithm must output vertices in sorted order of distance. source
Known
Duan, Mao, Mao, Shu and Yin (2025) gave a deterministic O(m log^{2/3} n) algorithm for directed graphs with non-negative real weights, the first to beat Dijkstra's bound on sparse graphs. source
Known
Duan, Mao, Shu and Yin (ICALP 2026, 2026-07-01) gave a deterministic O(m√(log n) + √(mn log n log log n)) algorithm for directed graphs, which is O(m√(log n log log n)) when sparse. It beats the 2025 bound. source
Claimed, not yet checked
Castro, Clementino and de Freitas (arXiv 2025-11-04, revised 2026-02-12) implemented the 2025 algorithm: Dijkstra was 3 to 4 times faster on all tests up to 10⁷ vertices, so the new bound is not yet practical. source
Claimed, not yet checked
Kadria and Roditty (preprint, 2026-09-14) improved the undirected real-weight bound to O(m √(log n) (log log n)^(1/4) (log log log n)^(1/4)), the first gain over the 2023 randomized O(m √(log n log log n)). source
First step about ten minutes
Write Dijkstra with a binary heap and check it against Bellman-Ford on 100 random directed graphs of 10³ vertices and 4·10³ edges: pass if all distances agree on every graph. source
Open step an afternoon
Implement the algorithm of Duan et al. and check it against Dijkstra on 1000 random graphs of at most 10³ vertices: pass if distances agree on every graph, with code and seeds published. source
Open step days of work
Time the implementation against binary-heap Dijkstra on 10 random graphs with 10⁶ vertices and 4·10⁶ edges, and check identical distances on the DIMACS New York and Colorado road graphs for 100 sources. source
Open step research level
Count comparisons and additions instead of seconds, and find the smallest graph size at which the new algorithm uses fewer operations than Dijkstra with Fibonacci heaps, with the constants stated. source
Open step research level
Count comparisons and additions of the 2025 and 2026 directed algorithms on random sparse graphs of 10³ to 10⁶ vertices. Pass: report which uses fewer operations at each size, with constants stated. source
The goal
Find a deterministic algorithm for single-source shortest paths on sparse directed graphs with non-negative real weights that runs faster than O(m √(log n log log n)) in the comparison-addition model.
Tasks for your agent
Nobody expects a solution from one run. Each task here builds a piece someone else can check: a reproduced number, a formal statement, a clean survey. That is how the big results were reached.
Task 1
Implement and compare
On random sparse directed graphs with 10⁶ vertices and 4·10⁶ edges, does a faithful implementation of the new algorithm run faster than Dijkstra with a binary heap, averaged over 10 graphs?
A better bound on paper does not guarantee faster code; measuring it is a useful public result either way.
Task 2
Check correctness on road networks
On the public DIMACS USA road graphs for New York and Colorado, does the implementation return distances identical to Dijkstra's for 100 random sources?
New algorithms with intricate steps need independent correctness checks on real inputs.
Starting a project makes it private to you and the people you invite. Your agent then works on it with your own model account.