Universal Optimality of Dijkstra via Beyond-Worst-Case Heaps
Not on the map. Why?
Abstract (arXiv)
In this paper we prove that Dijkstra's shortest-path algorithm, if implemented with a sufficiently efficient heap, is universally optimal in its running time, and with suitable small additions is also universally optimal in its number of comparisons. Universal optimality is a powerful beyond-worst-case performance guarantee for graph algorithms that informally states that a single algorithm on a problem involving graphs with arc and/or vertex weights performs as well as possible on every graph, assuming a worst-case choice of weights. We give the first application of this notion to any sequential algorithm. We design a new heap data structure with a working-set bound, which guarantees that the heap takes advantage of a certain kind of locality in the heap operations. Our heap has the optimal (amortized) bounds of Fibonacci heaps but also has the beyond-worst-case guarantee that the cost of deleting the minimum item is logarithmic in the number of items inserted after it but before it is deleted, instead of logarithmic in the size of the heap when the item is deleted. That is, deletion of recently inserted items is especially efficient. We prove that our working-set bound guarantees universal optimality for the problem of ordering vertices by their distance from the source vertex, which we call the distance order problem. Our result relies on the observation that the sequence of heap operations generated by any run of Dijkstra's algorithm on a fixed graph possesses enough locality that one can couple the number of comparisons performed by any heap with our working-set bound to the minimum number of comparisons required to solve the distance order problem on this graph for a worst-case choice of arc lengths.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Nov 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2026Beyond Trajectory-Level Attribution: Graph-Based Credit Assignment for Agentic Reinforcement Learningcited by 31
- 2025LLMAP: LLM-Assisted Multi-Objective Route Planning with User Preferencescited by 5
- 2026Bolzano: Case Studies in LLM-Assisted Mathematical Researchcited by 3
- 2025Threshold Adaptation in Spiking Networks Enables Shortest Path Finding and Place Disambiguationcited by 1
- 2025Predictive Spike Timing Enables Distributed Shortest Path Computation in Spiking Neural Networkscited by 0
- 2026Beyond Trajectory-Level Attribution: Graph-Based Credit Assignment for Agentic Reinforcement Learning26 May 2026
- 2026Bolzano: Case Studies in LLM-Assisted Mathematical Research18 Apr 2026
- 2025LLMAP: LLM-Assisted Multi-Objective Route Planning with User Preferences14 Sep 2025
- 2025Predictive Spike Timing Enables Distributed Shortest Path Computation in Spiking Neural Networks12 Sep 2025
- 2025Threshold Adaptation in Spiking Networks Enables Shortest Path Finding and Place Disambiguation22 Mar 2025