A Lower Bound for the Query Phase of Contraction Hierarchies and Hub Labels and a Provably Optimal Instance-Based Schema †
Abstract
:1. Introduction
1.1. Related Work
1.2. Our Contribution and Outline
2. Preliminaries
2.1. Contraction Hierarchies
2.2. Hub Labels
3. Theory: A Lower Bound Construction
3.1. The Lightheaded -Grid
3.2. Shortest Path Trees in Lightheaded Grids
3.3. Lower Bounding the Direct Search Space
3.4. Lower Bounding of Hub Label Sizes
4. Practice: Instance-Based Lower Bounds
4.1. Witness Triples
- 1.
- and
- 2.
- and
- it accounts for a node in in the forward search space of x. Nodes in the forward search space of x can only be accounted for by triples . However, as due to W being conflict-free, we have not doubly accounted for it.
- it accounts for a node in in the backward search space of v. Nodes in the backwards search space of v can only be accounted for by triples . However, as due to W being conflict-free, we have not doubly accounted for it. □
4.2. Generation of Witness Triples
4.2.1. Method A: Fixed Lengths
4.2.2. Method B: Peak Nodes
4.2.3. Efficient Conflict Check
Algorith 1 The algorithm to find a set of non-conflicting witness triples. |
1: procedure findWitnesses(G) 2: 3: 4: 5: while do 6: 7: while do 8: 9: 10: 11: pruneConflictingTriples 12: end while 13: 14: end while 15: return W 16: end procedure |
4.3. Experimental Results
5. Tightness of Instance-Based Lower Bounding Technique
5.1. Center-Conflict
- forward center-conflicting if and
- backward center-conflicting if and
5.2. Special Triples Representing Nodes in Their Own Search Space
5.3. Balanced Ternary Trees
5.4. Balanced Binary Trees
5.5. Path Graph
5.6. Star Graph
5.7. Balanced N-Ary Trees
5.8. Non-Tree Graphs
6. Materials and Methods
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
HL | Hub Label |
CH | Contraction Hierarchy |
DSS | Direct Search Space |
SPT | Shortest Path Tree |
OSM | Open Street Map |
References
- Gutman, R.J. Reach-Based Routing: A New Approach to Shortest Path Algorithms Optimized for Road Networks. In Proceedings of the Sixth Workshop on Algorithm Engineering and Experiments and the First Workshop on Analytic Algorithmics and Combinatorics, New Orleans, LA, USA, 10 January 2004; pp. 100–111. [Google Scholar]
- Goldberg, A.V.; Kaplan, H.; Werneck, R.F. Reach for A*: Efficient Point-to-Point Shortest Path Algorithms. In Proceedings of the Workshop on Algorithm Engineering and Experiments (ALENEX), Miami, FL, USA, 21 January 2006; pp. 129–143. [Google Scholar]
- Sanders, P.; Schultes, D. Engineering highway hierarchies. ACM J. Exp. Algorithmic 2012, 17. [Google Scholar] [CrossRef] [Green Version]
- Bauer, R.; Delling, D. SHARC: Fast and Robust Unidirectional Routing. In Proceedings of the Workshop on Algorithm Engineering and Experiments (ALENEX), San Francisco, CA, USA, 19 January 2008; pp. 13–26. [Google Scholar]
- Geisberger, R.; Sanders, P.; Schultes, D.; Vetter, C. Exact Routing in Large Road Networks Using Contraction Hierarchies. Transp. Sci. 2012, 46, 388–404. [Google Scholar] [CrossRef]
- Bast, H.; Funke, S.; Sanders, P.; Schultes, D. Fast routing in road networks with transit nodes. Science 2007, 316, 566. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Bast, H.; Funke, S.; Matijevic, D.; Sanders, P.; Schultes, D. In Transit to Constant Time Shortest-Path Queries in Road Networks. In Proceedings of the Workshop on Algorithm Engineering and Experiments (ALENEX), New Orleans, LA, USA, 6 January 2007. [Google Scholar]
- Abraham, I.; Delling, D.; Goldberg, A.V.; Werneck, R.F. Hierarchical Hub Labelings for Shortest Paths. In Lecture Notes in Computer Science; Springer: New York, NY, USA, 2012; Volume 7501, pp. 24–35. [Google Scholar]
- Abraham, I.; Fiat, A.; Goldberg, A.V.; Werneck, R.F. Highway Dimension, Shortest Paths, and Provably Efficient Algorithms. In Proceedings of the 21st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), Austin, TX, USA, 17–19 January 2010; pp. 782–793. [Google Scholar]
- Kosowski, A.; Viennot, L. Beyond Highway Dimension: Small Distance Labels Using Tree Skeletons. In Proceedings of the 28th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), Barcelona, Spain, 16–19 January 2017; pp. 1462–1478. [Google Scholar]
- Blum, J.; Funke, S.; Storandt, S. Sublinear Search Spaces for Shortest Path Planning in Grid and Road Networks. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence (AAAI), New Orleans, LA, USA, 2–7 February 2018; pp. 6119–6126. [Google Scholar]
- Bauer, R.; Columbus, T.; Rutter, I.; Wagner, D. Search-Space Size in Contraction Hierarchies. In Proceedings of the 40th International Colloquium on Automata, Languages, and Programming (ICALP), Riga, Latvia, 8–12 July 2013; Volume 6124, pp. 93–104. [Google Scholar]
- Funke, S.; Storandt, S. Provable Efficiency of Contraction Hierarchies with Randomized Preprocessing. In Proceedings of the 26th International Symposium on Algorithms and Computation (ISAAC), Nagoya, Japan, 9–11 December 2015; Volume 9472, pp. 479–490. [Google Scholar]
- Lipton, R.J.; Tarjan, R.E. A separator theorem for planar graphs. SIAM J. Appl. Math. 1979, 36, 177–189. [Google Scholar] [CrossRef]
- White, C. Lower Bounds in the Preprocessing and Query Phases of Routing Algorithms. In Proceedings of the 23rd Annual European Symposium on Algorithms (ESA), Patras, Greece, 14–16 September 2015; pp. 1013–1024. [Google Scholar]
- Milosavljević, N. On optimal preprocessing for contraction hierarchies. In Proceedings of the 5th ACM SIGSPATIAL IWCTS, Redondo Beach, CA, USA, 23–25 November 2012; pp. 33–38. [Google Scholar]
- Eisner, J.; Funke, S. Transit Nodes-Lower Bounds and Refined Construction. In Proceedings of the 14th Workshop on Algorithm Engineering and Experiments (ALENEX), Kyoto, Japan, 16 January 2012; pp. 141–149. [Google Scholar]
- Rupp, T.; Funke, S. A lower bound for the query phase of contraction hierarchies and hub labels. In International Computer Science Symposium in Russia; Springer: New York, NY, USA, 2020; pp. 354–366. [Google Scholar]
Test Graph | Lower Manhattan | Bremen (Fast Car) | Bremen (Car) | Bremen (Highway) | |
---|---|---|---|---|---|
# nodes | 22 | 2828 | 40,426 | 119,989 | 1781 |
# edges (org) | 52 | 4020 | 64,663 | 227,567 | 1766 |
# edges (CH) | 77 | 7752 | 126,055 | 400,038 | 3340 |
-construction space (A) | MB | 233 MB | 40 GB | 354 GB | 84 MB |
-construction space (B) | MB | MB | 91 MB | 328 MB | 6 MB |
-construction time (A) | <1 s | 36 s | 100 m | h | <1 s |
-construction time (B) | <1 s | 10 s | 80 m | h | <1 s |
(A) | |||||
(B) | |||||
(A) | |||||
(B) |
Side Length | 1 | 5 | 10 | 15 | 20 | 25 |
---|---|---|---|---|---|---|
Side Length | 1 | 5 | 10 | 15 | 20 | 25 |
---|---|---|---|---|---|---|
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Rupp, T.; Funke, S. A Lower Bound for the Query Phase of Contraction Hierarchies and Hub Labels and a Provably Optimal Instance-Based Schema. Algorithms 2021, 14, 164. https://doi.org/10.3390/a14060164
Rupp T, Funke S. A Lower Bound for the Query Phase of Contraction Hierarchies and Hub Labels and a Provably Optimal Instance-Based Schema. Algorithms. 2021; 14(6):164. https://doi.org/10.3390/a14060164
Chicago/Turabian StyleRupp, Tobias, and Stefan Funke. 2021. "A Lower Bound for the Query Phase of Contraction Hierarchies and Hub Labels and a Provably Optimal Instance-Based Schema" Algorithms 14, no. 6: 164. https://doi.org/10.3390/a14060164
APA StyleRupp, T., & Funke, S. (2021). A Lower Bound for the Query Phase of Contraction Hierarchies and Hub Labels and a Provably Optimal Instance-Based Schema. Algorithms, 14(6), 164. https://doi.org/10.3390/a14060164