skip to main content
research-article

Computing the Inverse Geodesic Length in Planar Graphs and Graphs of Bounded Treewidth

Authors Info & Claims
Published:04 March 2022Publication History
Skip Abstract Section

Abstract

The inverse geodesic length of a graph G is the sum of the inverse of the distances between all pairs of distinct vertices of G. In some domains, it is known as the Harary index or the global efficiency of the graph. We show that, if G is planar and has n vertices, then the inverse geodesic length of G can be computed in roughly O(n9/5) time. We also show that, if G has n vertices and treewidth at most k, then the inverse geodesic length of G can be computed in O(n log O(k)n) time. In both cases, we use techniques developed for computing the sum of the distances, which does not have “inverse” component, together with batched evaluations of rational functions.

REFERENCES

  1. [1] Abboud Amir, Williams Virginia Vassilevska, and Wang Joshua R.. 2016. Approximation and fixed parameter subquadratic algorithms for radius and diameter in sparse graphs. In Proceedings of the 27th ACM-SIAM Symposium on Discrete Algorithms, (SODA ’16). SIAM, 377391. Google ScholarGoogle ScholarCross RefCross Ref
  2. [2] Agarwal Pankaj K. and Erickson Jeff. 1998. Geometric range searching and its relatives. In Advances in Discrete and Computational Geometry, Chazelle B., Goodman J., and Pollack R. (Eds.). AMS, 156.Google ScholarGoogle Scholar
  3. [3] Aronov Boris and Katz Matthew J.. 2018. Batched point location in SINR diagrams via algebraic tools. ACM Trans. Algorithms 14, 4 (2018), 41:1–41:29. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. [4] Bodlaender Hans L.. 1996. A linear-time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput. 25, 6 (1996), 13051317. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. [5] Bodlaender Hans L.. 1998. A partial \( k \)-Arboretum of graphs with bounded treewidth. Theor. Comput. Sci. 209 (1998), 145. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. [6] Bodlaender Hans L., Drange Pål Grønås, Dregi Markus S., Fomin Fedor V., Lokshtanov Daniel, and Pilipczuk Michal. 2016. A \( c^k n \) 5-approximation algorithm for treewidth. SIAM J. Comput. 45, 2 (2016), 317378. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. [7] Bringmann Karl, Husfeldt Thore, and Magnusson Måns. 2020. Multivariate analysis of orthogonal range searching and graph distances. Algorithmica 82, 8 (2020), 22922315. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. [8] Cabello Sergio. 2018. Subquadratic algorithms for the diameter and the sum of pairwise distances in planar graphs. ACM Trans. Algorithms 15, 2 (2018), 21:1–21:38. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. [9] Cabello Sergio and Knauer Christian. 2009. Algorithms for graphs of bounded treewidth via orthogonal range searching. Comput. Geom. 42, 9 (2009), 815824. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. [10] Berg Mark de, Cheong Otfried, Kreveld Marc van, and Overmars Mark. 2008. Computational Geometry: Algorithms and Applications (3rd ed.). Springer-Verlag. Google ScholarGoogle ScholarCross RefCross Ref
  11. [11] Devillers James and Balaban Alexandru T. (Eds.). 1999. Topological Indices and Related Descriptors in QSAR and QSPR. CRC Press.Google ScholarGoogle Scholar
  12. [12] Fakcharoenphol Jittat and Rao Satish. 2006. Planar graphs, negative weight edges, shortest paths, and near linear time. J. Comput. Syst. Sci. 72, 5 (2006), 868889. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. [13] Frederickson Greg N.. 1991. Planar graph decomposition and all pairs shortest paths. J. ACM 38, 1 (1991), 162204. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. [14] Gaspers Serge and Lau Joshua. 2019. Minimizing and computing the inverse geodesic length on trees. In Proceedings of the 30th International Symposium on Algorithms and Computation (ISAAC 2019) (LIPIcs), Vol. 149. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 59:1–59:19. Google ScholarGoogle ScholarCross RefCross Ref
  15. [15] Gawrychowski Pawel, Kaplan Haim, Mozes Shay, Sharir Micha, and Weimann Oren. 2021. Voronoi diagrams on planar graphs, and computing the diameter in deterministic \( \tilde{O}(n^{5/3}) \) time. SIAM J. Comput. 50, 2 (2021), 509554. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. [16] Henzinger Monika R., Klein Philip N., Rao Satish, and Subramanian Sairam. 1997. Faster shortest-path algorithms for planar graphs. J. Comput. Syst. Sci. 55, 1 (1997), 323. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. [17] Klein Philip N., Mozes Shay, and Sommer Christian. 2013. Structured recursive separator decompositions for planar graphs in linear time. In Proceedings of the 45th ACM Symposium on Theory of Computing (STOC ’13). 505514. See http://arxiv.org/abs/1208.2223 for the full version.Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. [18] Klein Philip N. and Subramanian Sairam. 1998. A fully dynamic approximation scheme for shortest paths in planar graphs. Algorithmica 22, 3 (1998), 235249. Google ScholarGoogle ScholarCross RefCross Ref
  19. [19] Latora Vito and Marchiori Massimo. 2001. Efficient behavior of small-world networks. Phys. Rev. Lett. 87 (Oct 2001), 198701. Issue 19. Google ScholarGoogle ScholarCross RefCross Ref
  20. [20] Latora Vito and Marchiori Massimo. 2003. Economic small-world behavior in weighted networks. The European Physical Journal B - Condensed Matter and Complex Systems 32, 2 (Mar 2003), 249263. Google ScholarGoogle ScholarCross RefCross Ref
  21. [21] Monier Louis. 1980. Combinatorial solutions of multidimensional divide-and-conquer recurrences. J. Algorithms 1, 1 (1980), 6074. Google ScholarGoogle ScholarCross RefCross Ref
  22. [22] Moroz Guillaume and Aronov Boris. 2016. Computing the distance between piecewise-linear bivariate functions. ACM Trans. Algorithms 12, 1 (2016), 3:1–3:13. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. [23] Plavšić Dejan, Nikolić Sonja, Trinajstić Nenad, and Mihalić Zlatko. 1993. On the Harary index for the characterization of chemical graphs. Journal of Mathematical Chemistry 12, 1 (1993), 235250. Google ScholarGoogle ScholarCross RefCross Ref
  24. [24] Roditty Liam and Williams Virginia Vassilevska. 2013. Fast approximation algorithms for the diameter and radius of sparse graphs. In Proceedings of the 45th ACM Symposium on Theory of Computing (STOC ’13). 515524. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. [25] Gathen Joachim von zur and Gerhard Jürgen. 2013. Modern Computer Algebra (3rd ed.). Cambridge University Press.Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Computing the Inverse Geodesic Length in Planar Graphs and Graphs of Bounded Treewidth

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM Transactions on Algorithms
          ACM Transactions on Algorithms  Volume 18, Issue 2
          April 2022
          285 pages
          ISSN:1549-6325
          EISSN:1549-6333
          DOI:10.1145/3514175
          • Editor:
          • Edith Cohen
          Issue’s Table of Contents

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 4 March 2022
          • Accepted: 1 November 2021
          • Revised: 1 June 2021
          • Received: 1 August 2019
          Published in talg Volume 18, Issue 2

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        Full Text

        View this article in Full Text.

        View Full Text

        HTML Format

        View this article in HTML Format .

        View HTML Format