All-Pairs Shortest Paths in Geometric Intersection Graphs

  • Timothy M. Chan
  • Dimitrios SkrepetosEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10389)


We address the All-Pairs Shortest Paths (APSP) problem for a number of unweighted, undirected geometric intersection graphs. We present a general reduction of the problem to static, offline intersection searching (specifically detection). As a consequence, we can solve APSP for intersection graphs of n arbitrary disks in \(O\left( n^2\log n\right) \) time, axis-aligned line segments in \(O\left( n^2\log {\log n}\right) \) time, arbitrary line segments in \(O\left( n^{7/3}\log ^{1/3} n\right) \) time, d-dimensional axis-aligned boxes in \(O\left( n^2\log ^{d-1.5} n\right) \) time for \(d\ge 2\), and d-dimensional axis-aligned unit hypercubes in \(O\left( n^2\log {\log n}\right) \) time for \(d=3\) and \(O\left( n^2\log ^{d-3} n\right) \) time for \(d\ge 4\).

In addition, we show how to solve the Single-Source Shortest Paths (SSSP) problem in unweighted intersection graphs of axis-aligned line segments in \(O\left( n\log n\right) \) time, by a reduction to dynamic orthogonal point location.


Shortest paths Geometric intersection graphs Intersection searching data structures Disk graphs 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Afshani, P., Chan, T.M., Tsakalidis, K.: Deterministic rectangle enclosure and offline dominance reporting on the RAM. In: Esparza, J., Fraigniaud, P., Husfeldt, T., Koutsoupias, E. (eds.) ICALP 2014. LNCS, vol. 8572, pp. 77–88. Springer, Heidelberg (2014). doi: 10.1007/978-3-662-43948-7_7 Google Scholar
  2. 2.
    Agarwal, P.K., Alon, N., Aronov, B., Suri, S.: Can visibility graphs be represented compactly? Discrete & Computational Geometry 12(3), 347–365 (1994)MathSciNetCrossRefzbMATHGoogle Scholar
  3. 3.
    Agarwal, P.K., Pellegrini, M., Sharir, M.: Counting circular arc intersections. SIAM Journal on Computing 22(4), 778–793 (1993)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
    Aingworth, D., Chekuri, C., Indyk, P., Motwani, R.: Fast estimation of diameter and shortest paths (without matrix multiplication). SIAM Journal on Computing 28(4), 1167–1181 (1999)MathSciNetCrossRefzbMATHGoogle Scholar
  5. 5.
    Alon, N., Galil, Z., Margalit, O., Naor, M.: Witnesses for boolean matrix multiplication and for shortest paths. In: Proceedings of the Thirty-Third Annual IEEE Symposium on Foundations of Computer Science, pp. 417–426 (1992)Google Scholar
  6. 6.
    Blelloch, G.E.: Space-efficient dynamic orthogonal point location, segment intersection, and range reporting. In: Proceedings of the Nineteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 894–903 (2008)Google Scholar
  7. 7.
    Cabello, S.: Subquadratic algorithms for the diameter and the sum of pairwise distances in planar graphs. In: Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 2143–2152. SIAM (2017)Google Scholar
  8. 8.
    Cabello, S., Jejčič, M.: Shortest paths in intersection graphs of unit disks. Computational Geometry 48(4), 360–367 (2015)MathSciNetCrossRefzbMATHGoogle Scholar
  9. 9.
    Chan, T.M.: Dynamic subgraph connectivity with geometric applications. SIAM Journal on Computing 36(3), 681–694 (2006)MathSciNetCrossRefzbMATHGoogle Scholar
  10. 10.
    Chan, T.M.: All-pairs shortest paths for unweighted undirected graphs in \(o(mn)\) time. ACM Transactions on Algorithms 8, 1–17 (2012)MathSciNetCrossRefzbMATHGoogle Scholar
  11. 11.
    Chan, T.M.: Persistent predecessor search and orthogonal point location on the word RAM. ACM Transactions on Algorithms 9(3), 22 (2013)MathSciNetCrossRefzbMATHGoogle Scholar
  12. 12.
    Chan, T.M., Efrat, A.: Fly cheaply: On the minimum fuel consumption problem. Journal of Algorithms 41(2), 330–337 (2001)MathSciNetCrossRefzbMATHGoogle Scholar
  13. 13.
    Chan, T.M., Larsen, K.G., Pătraşcu, M.: Orthogonal range searching on the RAM, revisited. In: Proceedings of the Twenty-Seventh Annual ACM Symposium on Computational Geometry, pp. 1–10 (2011)Google Scholar
  14. 14.
    Chan, T.M., Pătraşcu, M.: Counting inversions, offline orthogonal range counting, and related problems. In: Proceedings of the Twenty-First Annual ACM-SIAM Aymposium on Discrete Algorithms, pp. 161–173 (2010)Google Scholar
  15. 15.
    Chan, T.M., Skrepetos, D.: All-pairs shortest paths in unit-disk graphs in slightly subquadratic time. In: Proccedings of the Twenty-Seventh Annual International Symposium on Algorithms and Computation, pp. 24:1–24:13 (2016)Google Scholar
  16. 16.
    Chazelle, B.: Cutting hyperplanes for divide-and-conquer. Discrete & Computational Geometry 9(2), 145–158 (1993)MathSciNetCrossRefzbMATHGoogle Scholar
  17. 17.
    Edelsbrunner, H., Maurer, H.A.: On the intersection of orthogonal objects. Information Processing Letters 13(4/5), 177–181 (1981)MathSciNetCrossRefGoogle Scholar
  18. 18.
    Edelsbrunner, H., Overmars, M.H.: On the equivalence of some rectangle problems. Information Processing Letters 14(3), 124–127 (1982)MathSciNetCrossRefzbMATHGoogle Scholar
  19. 19.
    Feder, T., Motwani, R.: Clique partitions, graph compression and speeding-up algorithms. Journal of Computer and System Sciences 51(2), 261–272 (1995)MathSciNetCrossRefzbMATHGoogle Scholar
  20. 20.
    Fortune, S.: A sweepline algorithm for Voronoi diagrams. Algorithmica 2, 153–174 (1987)MathSciNetCrossRefzbMATHGoogle Scholar
  21. 21.
    Giora, Y., Kaplan, H.: Optimal dynamic vertical ray shooting in rectilinear planar subdivisions. ACM Transactions on Algorithms 5(3), 28 (2009)MathSciNetCrossRefzbMATHGoogle Scholar
  22. 22.
    Gupta, P., Janardan, R., Smid, M.H.M., DasGupta, B.: The rectangle enclosure and point-dominance problems revisited. International Journal of Computational Geometry and Applications 7(5), 437–455 (1997)MathSciNetCrossRefzbMATHGoogle Scholar
  23. 23.
    Kaplan, H., Mulzer, W., Roditty, L., Seiferth, P.: Spanners and reachability oracles for directed transmission graphs. In: LIPIcs-Leibniz International Proceedings in Informatics, vol. 34 (2015)Google Scholar
  24. 24.
    Kaplan, H., Mulzer, W., Roditty, L., Seiferth, P., Sharir, M.: Dynamic planar Voronoi diagrams for general distance functions and their algorithmic applications. In: Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 2495–2504 (2017)Google Scholar
  25. 25.
    Katz, M.J.: 3-D vertical ray shooting and 2-D point enclosure, range searching, and arc shooting amidst convex fat objects. Computational Geometry 8(6), 299–316 (1997)MathSciNetCrossRefzbMATHGoogle Scholar
  26. 26.
    Seidel, R.: On the all-pairs-shortest-path problem in unweighted undirected graphs. Journal of Computer and System Sciences 51(3), 400–403 (1995)MathSciNetCrossRefzbMATHGoogle Scholar
  27. 27.
    Snoeyink, J.: Point location. In: Handbook of Discrete and Computational Geometry, 2nd edn., pp. 767–785. CRC Press (2004)Google Scholar
  28. 28.
    Williams, V.V.: Multiplying matrices faster than Coppersmith-Winograd. In: Proceedings of the Forty-Fourth Annual ACM Symposium on Theory of Computing, pp. 887–898 (2012)Google Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  1. 1.Department of Computer ScienceUniversity of Illinois at Urbana-ChampaignChampaignUSA
  2. 2.Cheriton School of Computer ScienceUniversity of WaterlooWaterlooCanada

Personalised recommendations