Skip to main content

An Efficient Oracle for Counting Shortest Paths in Planar Graphs

  • Conference paper
  • First Online:
Algorithmic Aspects in Information and Management (AAIM 2021)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 13153))

Included in the following conference series:

  • 449 Accesses

Abstract

We propose an \(O(\sqrt{n})\) query time and \(O(n^{1.5})\) size oracle which, given a pair of vertices u and v in a planar graph G of n vertices, answers the number of shortest paths from u to v. Our oracle can answer a query whether there is a unique shortest path from u to v in \(O(\log n)\) time. Bezáková and Searns [ISAAC 2018] give an \(O(\sqrt{n})\) query time and \(O(n^{1.5})\) size oracle for counting shortest paths in planar graphs. Applying this oracle directly, it takes \(O(\sqrt{n})\) time to answer whether there is a unique shortest path from u to v. A key component in our oracle is to apply Voronoi diagrams on planar graphs to speed up the query time. Computational studies show that our oracle is faster to answer queries than the oracle of Bezáková and Searns for large graphs. Applying Voronoi diagrams on planar graphs, significant theoretical improvements have been made for distance oracles. Our studies confirm that Voronoi diagrams are efficient data structures for distance oracles in practice.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    It is assumed that every arithmetic operation takes O(1) time. This paper also follows this assumption.

References

  1. Bezáková, I., Friedlander, A.J.: Computing and sampling minimum \((s, t)\)-cuts in weighted planar graphs in polynomial time. Theoret. Comput. Sci. 417, 2–11 (2012)

    Article  MathSciNet  Google Scholar 

  2. Bezáková, I., Searns, A.: On counting oracles for path problems. In: Proceedings of the 29th International Symposium on Algorithms and Computation (ISAAC 2018), pp. 56:1–56:12 (2018)

    Google Scholar 

  3. Cabello, S.: Subquadratic algorithms for diameter and sum of pairwise distances in planar graphs. In: Proceedings of the 28th ACM/SIAM Symposium on Discrete Algorithms (SODA 2017), pp. 2143–2152 (2017)

    Google Scholar 

  4. Charalampopoulos, P., Gawrychowski, P., Mozes, S., Weimann, O.: Almost optimal distance oracles for planar graphs. In: Proceedings of the 51st Annual ACM Symposium on Theory of Computing (STOC 2019), pp. 138–151 (2019)

    Google Scholar 

  5. Chen, B.Y., Chen, X.-W., Chen, H.-P., Lam, W.H.K.: Efficient algorithm for finding \(k\) shortest paths based on re-optimization technique. Transp. Res. Part E: Logistics Transp. Rev. 133, 101819 (2020)

    Google Scholar 

  6. Cohen-Addad, V., Dahlgaard, S., Wulff-Nilsen, C.: Fast and compact distance oracle for planar graphs. In: Proceedings of the 58th IEEE Annual Symposium on Foundations of Computer Science (FOCS2018), pp. 962–973 (2018)

    Google Scholar 

  7. Frederickson, G.N.: Fast algorithms for shortest paths in planar graphs. SIAM J. Comput. 16(6), 1004–1022 (1987)

    Article  MathSciNet  Google Scholar 

  8. Gawrychowski, P., Mozes, S., Weimann, O., Wulff-Nilsen, C.: Better tradeoffs for exact distance oracles in planar graphs. In: Proceedings of the 29th ACM/SIAM Symposium on Discrete Algorithms (SODA 2018), pp. 515–529 (2018)

    Google Scholar 

  9. Henzinger, M.R., Klein, P.N., Rao, S., Subramanian, S.: Faster shortest-path algorithms for planar graphs. J. Comput. Syst. Sci. 55(1), 3–23 (1997)

    Article  MathSciNet  Google Scholar 

  10. Klein, P.N., Mozes, S., Sommer, C.: Structured recursive separator decompositions for planar graphs. In: Proceedings of the 45th Annual ACM Symposium on Theory of Computing (STOC 2013), pp. 505–514 (2013)

    Google Scholar 

  11. Long, Y., Pettie, S.: Planar distance oracles with better time-space tradeoffs. In: Proceedings of the 32nd ACM/SIAM Symposium on Discrete Algorithms (SODA 2021), pp. 2517–2536 (2021)

    Google Scholar 

  12. Miller, G.L.: Finding small simple cycle separators for 2-connected planar graphs. J. Comput. Syst. Sci. 32(3), 265–279 (1986)

    Article  MathSciNet  Google Scholar 

  13. Sommer, C.: Shortest-path queries in static networks. ACM Comput. Surv. 46(4), 1–31 (2014)

    Article  Google Scholar 

  14. Vanhove, S., Fack, V.: An efficient heuristic for computing many shortest path alternatives in road networks. Int. J. Geogr. Inf. Sci. 26(6), 1031–1050 (2012)

    Article  Google Scholar 

  15. van Walderveen, F., Zeh, N., Arge, L.: Multiway simple cycle separators and I/O-efficient algorithms for planar graphs. In: Proceedings of the 24th ACM/SIAM Symposium on Discrete Algorithms (SODA 2013), pp. 901–918 (2013)

    Google Scholar 

  16. Wulff-Nilsen, C.: Approximate distance oracles for planar graphs with improved time-space tradeoffs. In: Proceedings of the 27th ACM/SIAM Symposium on Discrete Algorithms (SODA 2016), pp. 351–362 (2016)

    Google Scholar 

Download references

Acknowledgement

The authors thank anonymous reviewers for their constructive comments. The research was partially supported by NSERC discovery grant.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Qian-Ping Gu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gong, Y., Gu, QP. (2021). An Efficient Oracle for Counting Shortest Paths in Planar Graphs. In: Wu, W., Du, H. (eds) Algorithmic Aspects in Information and Management. AAIM 2021. Lecture Notes in Computer Science(), vol 13153. Springer, Cham. https://doi.org/10.1007/978-3-030-93176-6_35

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-93176-6_35

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-93175-9

  • Online ISBN: 978-3-030-93176-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics