skip to main content
article

Partitioning graphs to speedup Dijkstra's algorithm

Published: 09 February 2007 Publication History

Abstract

We study an acceleration method for point-to-point shortest-path computations in large and sparse directed graphs with given nonnegative arc weights. The acceleration method is called the arc-flag approach and is based on Dijkstra's algorithm. In the arc-flag approach, we allow a preprocessing of the network data to generate additional information, which is then used to speedup shortest-path queries. In the preprocessing phase, the graph is divided into regions and information is gathered on whether an arc is on a shortest path into a given region. The arc-flag method combined with an appropriate partitioning and a bidirected search achieves an average speedup factor of more than 500 compared to the standard algorithm of Dijkstra on large networks (1 million nodes, 2.5 million arcs). This combination narrows down the search space of Dijkstra's algorithm to almost the size of the corresponding shortest path for long-distance shortest-path queries. We conduct an experimental study that evaluates which partitionings are best suited for the arc-flag method. In particular, we examine partitioning algorithms from computational geometry and a multiway arc separator partitioning. The evaluation was done on German road networks. The impact of different partitions on the speedup of the shortest path algorithm are compared. Furthermore, we present an extension of the speedup technique to multiple levels of partitions. With this multilevel variant, the same speedup factors can be achieved with smaller space requirements. It can, therefore, be seen as a compression of the precomputed data that preserves the correctness of the computed shortest paths.

References

[1]
Agrawal, R. and Jagadish, H. V. 1994. Algorithms for searching massive graphs. IEEE Transactions on Knowledge and Data Engeneering 6, 2, 225--238.
[2]
Battista, G. D. and Zwick, U., Eds. 2003. Algorithms - ESA 2003, 11th Annual European Symposium, Budapest, Hungary, September 16-19, 2003, Proceedings. Lecture Notes in Computer Science, vol. 2832. Springer, New York.
[3]
Car, A. and Frank, A. U. 1994. Modelling a hierarchy of space applied to large road networks. In IGIS '94: Geographic Information Systems, International Workshop on Advanced Information Systems, J, Nievergelt, T. Roos, H.-J. Schek, and P. Widmayer, Eds. Lecture Notes in Computer Science, vol. 884. Springer, Heidelberg, 15--24.
[4]
Chou, Y.-L., Romeijn, H. E., and Smith, R. L. 1998. Approximating shortest paths in large-scale networks with an application to intelligent transportation systems. INFORMS Journal on Computing 10, 2, 163--179.
[5]
Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C. 2001. Introduction to Algorithms. The MIT Press, Cambridge, MA.
[6]
Dijkstra, E. W. 1959. A note on two problems in connexion with graphs. In Numerische Mathematik. Vol. 1. Mathematisch Centrum, Amsterdam, The Netherlands, 269--271.
[7]
Frederikson, G. N. 1987. Fast algorithms for shortest paths in planar graphs with applications. SIAM Journal on Computing 16, 6, 1004--1022.
[8]
Fredman, M. L. and Tarjan, R. E. 1987. Fibonacci heaps and their uses in improved network optimization algorithms. Journal of the Association for Computing Machinery 34, 3, 596--615.
[9]
Goldberg, A. V. and Harrelson, C. 2005. Computing the shortest path: A* search meets graph theory. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms, A. Buchsbaum, Ed. SIAM, Philadelphia, PA, USA, 156--165.
[10]
Gutman, R. J. 2004. 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, L. Arge, G. F. Italiano, and R. Sedgewick, Eds. SIAM, Philadelphia, PA, USA, 100--111.
[11]
Holzer, M. 2003. Hierarchical speedup techniques for shortest path algorithms. Tech. rep., Dept. of Informatics, University of Konstanz, Germany.
[12]
Holzer, M., Schulz, F., and Willhalm, T. 2004. Combining speedup techniques for shortest-path computations. In Experimental and Efficient Algorithms, Third International Workshop, C. C. Ribeiro and S. L. Martins, Eds. Lecture Notes in Computer Science, vol. 3059. Springer, Heidelberg, 269--284.)
[13]
Johnson, D. B. 1977. Efficient algorithms for shortest paths in sparse networks. Journal of the Association for Computing Machinery 24, 1, 1--13.
[14]
Jung, S. and Pramanik, S. 1996. Hiti graph model of topographical roadmaps in navigation systems. In Proceedings of the Twelfth International Conference on Data Engineering, S. Y. W. Su, Ed. IEEE Computer Society, Tokyo, 76--84.
[15]
Karypis, G. 1995. METIS: Family of multilevel partitioning algorithms. http://www-users.cs.umn.edu/~karypis/metis/.
[16]
Karypis, G. and Kumar, V. 1998. A fast and high quality multilevel scheme for partitioning irregular graphs. SIAM Journal on Scientific Computing 20, 1 (Aug.), 359--392.
[17]
Köhler, E., Möhring, R. H., and Schilling, H. 2005. Acceleration of shortest path and constrained shortest path computation. In Experimental and Efficient Algorithms, 4th InternationalWorkshop, WEA 2005, S. E. Nikoletseas, Ed. Lecture Notes in Computer Science, vol. 3503. Springer, Heidelberg, 126--138.
[18]
Kranakis, E., Krizanc, D., and Urrutia, J. 1995. Implicit routing and shortest path information (extended abstract). In SIROCCO, L. M. Kirousis and C. Kaklamanis, Eds. Proceedings in Informatics, vol. 2. Carleton Scientific, 101--112.
[19]
Lauther, U. 1997. Slow preprocessing of graphs for extremely fast shortest path calculations. Lecture at the Workshop on Computational Integer Programming at ZIB.
[20]
Lauther, U. 2004. An extremely fast, exact algorithm for finding shortest paths in static networks with geographical background. In Geoinformation und Mobilität---von der Forschung zur praktischen Anwendung, M. Raubal, A. Sliwinski, and W. Kuhn, Eds. IfGI prints, vol. 22. Institut für Geoinformatik, Westfälische Wilhelms-Universität, Münster, 219--230.
[21]
Mehlhorn, K. and Näher, S. 1999. LEDA, A platform for Combinatorial and Geometric Computing. Cambridge University Press, Cambridge.
[22]
Sanders, P. and Schultes, D. 2005. Highway hierarchies hasten exact shortest path queries. In Algorithms---ESA 2005, 13th Annual European Symposium, G. S. Brodal and S. Leonardi, Eds. Lecture Notes in Computer Science, vol. 3669. Springer, 568--579.
[23]
Schulz, F. 2005. Timetable information and shortest paths. Ph.D. thesis, Faculty of Informatics, University of Karlsruhe.
[24]
Schulz, F., Wagner, D., and Weihe, K. 2000. Dijkstra's algorithm on-line: An empirical case study from public railroad transport. ACM Journal of Experimental Algorithms 5, 12.
[25]
Wagner, D. and Willhalm, T. 2003. Geometric speedup techniques for finding shortest paths in large sparse graphs. (See Battista and Zwick {2003}, 776--787.)
[26]
Wagner, D. and Willhalm, T. 2005. Drawing graphs to speed up shortest-path computations. In Proceedings of the Seventh Workshop on Algorithm Engineering and Experiments and the Second Workshop on Analytic Algorithmics and Combinatorics, C. Demetrescu, R. Sedgewick, and R. Tamassia, Eds. SIAM, Philadelphia, PA, USA, 17--25.
[27]
Wagner, D., Willhalm, T., and Zaroliagis, C. 2005. Geometric containers for efficient shortest path computation. ACM Journal of Experimental Algorithms 10.
[28]
Willhalm, T. 2005. Engineering shortest paths and layout algorithms for large graphs. Ph.D. thesis, Faculty of Informatics, University of Karlsruhe.

Cited By

View all
  • (2024)I/O-Efficient Multi-Criteria Shortest Paths Query Processing on Large GraphsIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2024.338690636:11(6430-6446)Online publication date: Nov-2024
  • (2024)Route and charging planning for electric vehicles: a multi-objective approachTransportation Letters10.1080/19427867.2024.2315359(1-21)Online publication date: 14-Apr-2024
  • (2024)Proposal for a Resource Allocation Model Aimed at Fog ComputingAdvanced Information Networking and Applications10.1007/978-3-031-57870-0_34(385-396)Online publication date: 10-Apr-2024
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Journal of Experimental Algorithmics
ACM Journal of Experimental Algorithmics  Volume 11, Issue
2006
355 pages
ISSN:1084-6654
EISSN:1084-6654
DOI:10.1145/1187436
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 09 February 2007
Published in JEA Volume 11

Author Tags

  1. Dijkstra's algorithm
  2. Shortest path
  3. acceleration method
  4. road network

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)63
  • Downloads (Last 6 weeks)13
Reflects downloads up to 07 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2024)I/O-Efficient Multi-Criteria Shortest Paths Query Processing on Large GraphsIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2024.338690636:11(6430-6446)Online publication date: Nov-2024
  • (2024)Route and charging planning for electric vehicles: a multi-objective approachTransportation Letters10.1080/19427867.2024.2315359(1-21)Online publication date: 14-Apr-2024
  • (2024)Proposal for a Resource Allocation Model Aimed at Fog ComputingAdvanced Information Networking and Applications10.1007/978-3-031-57870-0_34(385-396)Online publication date: 10-Apr-2024
  • (2023)Algorithm for the Accelerated Calculation of Conceptual Distances in Large Knowledge GraphsMathematics10.3390/math1123480611:23(4806)Online publication date: 28-Nov-2023
  • (2023)Improving the Scalability of Distributed Network Emulations: An Algorithmic PerspectiveIEEE Transactions on Network and Service Management10.1109/TNSM.2023.328703020:4(4325-4339)Online publication date: Dec-2023
  • (2023)Optimized Multicar Dynamic Route Planning Based on Time-Hierarchical Graph ModelIEEE Intelligent Transportation Systems Magazine10.1109/MITS.2023.330233015:6(177-191)Online publication date: Nov-2023
  • (2023)Efficient and Reconfigurable Optimal Planning in Large-Scale Systems Using Hierarchical Finite State Machines2023 62nd IEEE Conference on Decision and Control (CDC)10.1109/CDC49753.2023.10383358(7380-7387)Online publication date: 13-Dec-2023
  • (2023)Efficient Constructions for the Győri-Lovász Theorem on Almost Chordal GraphsGraph-Theoretic Concepts in Computer Science10.1007/978-3-031-43380-1_11(143-156)Online publication date: 28-Jun-2023
  • (2022)Polestar++: An Intelligent Routing Engine for National-Wide Public TransportationIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2022.3153711(1-1)Online publication date: 2022
  • (2022)Stream Processing of Shortest Path Query in Dynamic Road NetworksIEEE Transactions on Knowledge and Data Engineering10.1109/TKDE.2020.301000534:5(2458-2471)Online publication date: 1-May-2022
  • Show More Cited By

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media