TY - GEN
T1 - Bidirectional Dijkstra's Algorithm is Instance-Optimal
AU - Haeupler, Bernhard
AU - Hladík, Richard
AU - Rozhoň, Václav
AU - Tarjan, Robert E.
AU - Tětek, Jakub
N1 - Publisher Copyright:
Copyright © 2025 by SIAM.
PY - 2025
Y1 - 2025
N2 - 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(∆) where ∆ is the maximum degree of the graph. We also show that this is the best possible.
AB - 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(∆) where ∆ is the maximum degree of the graph. We also show that this is the best possible.
UR - http://www.scopus.com/inward/record.url?scp=85217025070&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85217025070&partnerID=8YFLogxK
M3 - Conference contribution
AN - SCOPUS:85217025070
T3 - 8th SIAM Symposium on Simplicity of Algorithms, SOSA 2025
SP - 202
EP - 215
BT - 8th SIAM Symposium on Simplicity of Algorithms, SOSA 2025
A2 - Bercea, Ioana-Oriana
A2 - Pagh, Rasmus
PB - Society for Industrial and Applied Mathematics Publications
T2 - 8th SIAM Symposium on Simplicity of Algorithms, SOSA 2025
Y2 - 13 January 2025 through 15 January 2025
ER -