On optimal preprocessing for contraction hierarchies

  • Authors:
  • Nikola Milosavljević

  • Affiliations:
  • Institute for Formal Methods in Computer Science, Stuttgart, Germany

  • Venue:
  • Proceedings of the 5th ACM SIGSPATIAL International Workshop on Computational Transportation Science
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

For some graph classes, most notably real-world road networks, shortest path queries can be answered very efficiently if the graph is preprocessed into a contraction hierarchy. The preprocessing algorithm contracts nodes in some order, adding new edges (shortcuts) in the process. While preprocessing and query algorithm work for any contraction ordering, it is desirable to use one that produces as few shortcuts as possible. It is known that the problem of minimizing the size (number of edges) of a given graph's contraction hierarchy is APX-hard. Also, any graph can be processed into a contraction hierarchy with at most O(nh log D) edges, where n, D, and h are the number of nodes, the diameter, and the highway dimension of the original graph, respectively. In this paper we show that the O(nh log D) bound is tight for a wide range of parameters n, D, and h. We also show that planar graphs, despite having highway dimension Ω(√n), can be preprocessed into a graph of size O(n log n). Finally, we present a simpler proof of APX-hardness.