Universal Optimality of Dijkstra Via Beyond-Worst-Case Heaps

Bernhard Haeupler, Richard Hladik, Vaclav Rozhon, Robert E. Tarjan, Jakub Tetek

Research output: Chapter in Book/Report/Conference proceedingConference contribution

1 Scopus citations

Abstract

This paper proves that Dijkstra's shortest-path algorithm is universally optimal in both its running time and number of comparisons when combined with a sufficiently efficient heap data structure. Universal optimality is a powerful beyond-worst-case performance guarantee for graph algorithms that informally states that a single algorithm performs as well as possible for every single graph topology. We give the first application of this notion to any sequential algorithm. We design a new heap data structure with a working-set property guaranteeing that the heap takes advantage of locality in heap operations. Our heap matches the optimal (worst-case) bounds of Fibonacci heaps but also provides the beyond-worst-case guarantee that the cost of extracting the minimum element is merely logarithmic in the number of elements inserted after it instead of logarithmic in the number of all elements in the heap. This makes the extraction of recently added elements cheaper. We prove that our working-set property guarantees universal optimality for the problem of ordering vertices by their distance from the source vertex: 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 ordering problem on this graph for a worst-case choice of arc lengths.

Original languageEnglish (US)
Title of host publicationProceedings - 2024 IEEE 65th Annual Symposium on Foundations of Computer Science, FOCS 2024
PublisherIEEE Computer Society
Pages2099-2130
Number of pages32
ISBN (Electronic)9798331516741
DOIs
StatePublished - 2024
Event65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024 - Chicago, United States
Duration: Oct 27 2024Oct 30 2024

Publication series

NameProceedings - Annual IEEE Symposium on Foundations of Computer Science, FOCS
ISSN (Print)0272-5428

Conference

Conference65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024
Country/TerritoryUnited States
CityChicago
Period10/27/2410/30/24

All Science Journal Classification (ASJC) codes

  • General Computer Science

Keywords

  • beyond worst-case
  • dijkstras algorithm
  • shortest paths
  • universal optimality

Fingerprint

Dive into the research topics of 'Universal Optimality of Dijkstra Via Beyond-Worst-Case Heaps'. Together they form a unique fingerprint.

Cite this