Bidirectional Dijkstra's Algorithm is Instance-Optimal

Type: Preprint

Publication Date: 2024-10-18

Citations: 0

DOI: https://doi.org/10.48550/arxiv.2410.14638

Abstract

While Dijkstra's algorithm has near-optimal time complexity for the problem of finding the shortest $st$-path, in practice, other algorithms are often superior on huge graphs. A prominent such example is the bidirectional search, which executes Dijkstra's algorithm from both endpoints in parallel and stops when these executions meet. In this paper, we give a strong theoretical justification for the use of such bidirectional search algorithms. We prove that for weighted multigraphs, both directed and undirected, a careful implementation of bidirectional search is instance-optimal with respect to the number of edges it explores. That is, we prove that no correct algorithm can outperform our implementation of bidirectional search on any single instance by more than a constant factor. For unweighted graphs, we show that bidirectional search is instace-optimal up to a factor of $O(\Delta)$ where $\Delta$ is the maximum degree of the graph. We also show that this is the best possible.

Locations

  • arXiv (Cornell University) - View - PDF

Similar Works

Action Title Year Authors
+ PDF Chat Bidirectional Dijkstra’s Algorithm is Instance-Optimal 2025 Bernhard Haeupler
Richard Hladík
Václav Rozhoň
Robert E. Tarjan
Jakub Tětek
+ Deterministic Performance Guarantees for Bidirectional BFS on Real-World Networks 2022 Thomas Bläsius
Marcus Wilhelm
+ PDF Chat Theoretically Efficient Parallel Graph Algorithms Can Be Fast and Scalable 2021 Laxman Dhulipala
Guy E. Blelloch
Julian Shun
+ Theoretically Efficient Parallel Graph Algorithms Can Be Fast and Scalable 2018 Laxman Dhulipala
Guy E. Blelloch
Julian Shun
+ PDF Chat Fine-Grained Optimality of Partially Dynamic Shortest Paths and More 2024 Barna Saha
Virginia Vassilevska Williams
Yinzhan Xu
Christopher Ye
+ PDF Chat Tightest Admissible Shortest Path 2024 Eyal Weiss
Ariel Felner
Gal A. Kaminka
+ Tightest Admissible Shortest Path 2023 Eyal Weiss
Ariel Felner
Gal A. Kaminka
+ Parallel Breadth-First Search and Exact Shortest Paths and Stronger Notions for Approximate Distances 2022 Václav Rozhoň
Bernhard Haeupler
Anders Martinsson
Christoph Grunau
Goran Žužić
+ Efficient Construction of Directed Hopsets and Parallel Approximate Shortest Paths 2019 Nairen Cao
Jeremy T. Fineman
Katina Russell
+ PDF Chat Efficient Stepping Algorithms and Implementations for Parallel Shortest Paths 2021 Xiaojun Dong
Yan Gu
Yihan Sun
Yunming Zhang
+ Efficient Stepping Algorithms and Implementations for Parallel Shortest Paths 2021 Xiaojun Dong
Yan Gu
Yihan Sun
Yunming Zhang
+ Universal Optimality of Dijkstra via Beyond-Worst-Case Heaps 2023 Bernhard Haeupler
Richard Hladík
Václav Rozhoň
Robert E. Tarjan
Jakub Tětek
+ Bellman-Ford is optimal for shortest hop-bounded paths 2022 Adam Polak
+ PDF Chat A Bottom-Up Algorithm for Negative-Weight SSSP with Integrated Negative Cycle Finding 2024 Jason Li
Connor Mowry
+ Finding Optimal Longest Paths by Dynamic Programming in Parallel 2019 Kai Fieger
Tomáš Balyo
Christian Schulz
Dominik Schreiber
+ PDF Chat Balanced Bidirectional Breadth-First Search on Scale-Free Networks 2024 Sacha Cerf
Benjamin Dayan
Umberto De Ambroggio
Marc Kaufmann
Johannes Lengler
Ulysse Schaller
+ Speeding up shortest path algorithms 2012 Andrej Brodnik
Marko Grgurovič
+ Speeding up shortest path algorithms 2012 Andrej Brodnik
Marko Grgurovič
+ Approximate Undirected Transshipment and Shortest Paths via Gradient Descent. 2016 Ruben Becker
Andreas Karrenbauer
Sebastian Krinninger
Christoph Lenzen
+ PDF Chat Resource Constrained Pathfinding with Enhanced Bidirectional A* Search 2024 Saman Ahmadi
Andrea Raith
Guido Tack
Mahdi Jalili

Works That Cite This (0)

Action Title Year Authors

Works Cited by This (0)

Action Title Year Authors