Two Approaches to Building Time-Windowed Geometric Data Structures | Algorithmica Skip to main content
Log in

Two Approaches to Building Time-Windowed Geometric Data Structures

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

Given a set of geometric objects each associated with a time value, we wish to determine whether a given property is true for a subset of those objects whose time values fall within a query time window. We call such problems time-windowed decision problems, and they have been the subject of much recent attention, for instance studied by Bokal et al. (in: Proceedings of the 31st International Symposium on Computational Geometry (SoCG), pp 240–254, 2015). In this paper, we present new approaches to this class of problems that are conceptually simpler than Bokal et al. ’s, and also lead to faster algorithms. For instance, we present algorithms for preprocessing for both the time-windowed 2D diameter decision problem and the time-windowed 2D convex hull area decision problem in \(O(n \log n)\) time, improving Bokal et al. ’s \(O(n \log ^2 n)\) and \(O(n \log n \log \log n)\) solutions respectively. Our first approach is to reduce time-windowed decision problems to a generalized range successor problem, which we solve using a novel way to search range trees. Our other approach is to use dynamic data structures directly, taking advantage of a new observation that the total number of combinatorial changes to a planar convex hull is linear for any FIFO update sequence, in which deletions occur in the same order as insertions. We also apply these approaches to obtain the first \(O(n\, \mathrm{polylog}\, n)\) algorithms for the time-windowed 3D diameter decision and 2D orthogonal segment intersection detection problems.

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

Access this article

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price includes VAT (Japan)

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

Notes

  1. The definition in [5] considers subsets instead of supersets, but is equivalent after complementation.

  2. In fact, Chan and Pratt [13] show that we can reduce space to \(O\!\left( n\right) \) bits while maintaining \(O\!\left( 1\right) \) query time, by using succinct rank/select data structures [25].

  3. This improves the \(O(n\log n)\) upper bound from the earlier conference version of this paper [14].

References

  1. Agarwal, P.K., Matoušek, J.: Dynamic half-space range reporting and its applications. Algorithmica 13(4), 325–345 (1995)

    Article  MathSciNet  MATH  Google Scholar 

  2. Agarwal, P.K., Sharir, M.: Off-line dynamic maintenance of the width of a planar point set. Comput. Geom. Theory Appl. 1, 65–78 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  3. Amato, N.M., Goodrich, M.T., Ramos, E.A.: Parallel algorithms for higher-dimensional convex hulls. In: Proceedings of the 35th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 683–694 (1994)

  4. Bannister, M.J., Devanny, W.E., Goodrich, M.T., Simons, J.A., Trott, L.: Windows into geometric events: data structures for time-windowed querying of temporal point sets. In: Proceedings of the 26th Canadian Conference on Computational Geometry (CCCG), pp. 11–19 (2014)

  5. Bokal, D., Cabello, S., Eppstein, D.: Finding all maximal subsequences with hereditary properties. In: Proceedings of the 31st International Symposium on Computational Geometry (SoCG), pp. 240–254 (2015)

  6. Brodal, G.S., Jacob, R.: Dynamic planar convex hull. In: Proceedings of the 43rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 617–626 (2002)

  7. Chan, T.M.: Dynamic planar convex hull operations in near-logarithmic amortized time. J. ACM 48(1), 1–12 (2001)

    Article  MathSciNet  MATH  Google Scholar 

  8. Chan, T.M.: A fully dynamic algorithm for planar width. In: Proceedings of the 17th Annual Symposium on Computational Geometry (SoCG), pp. 172–176 (2001)

  9. Chan, T.M.: A dynamic data structure for 3-D convex hulls and 2-D nearest neighbor queries. J. ACM 57(3), 16:1–16:15 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  10. Chan, T.M.: Persistent predecessor search and orthogonal point location on the word RAM. ACM Trans. Algorithms 9(3), 22 (2013)

    Article  MathSciNet  MATH  Google Scholar 

  11. Chan, T.M.: Dynamic geometric data structures via shallow cuttings. In: Proceedings of the 35th International Symposium on Computational Geometry (SoCG) (2019)

  12. Chan, T.M., Larsen, K.G., Pătraşcu, M.: Orthogonal range searching on the RAM, revisited. In: Proceedings of the 27th Annual Symposium on Computational Geometry (SoCG), pp. 1–10 (2011)

  13. Chan, T.M., Pratt, S.: Time-windowed closest pair. In: Proceedings of the 27th Canadian Conference on Computational Geometry (CCCG) (2015)

  14. Chan, T.M., Pratt, S.: Two approaches to building time-windowed geometric data structures. In: Proceedings of the 32nd International Symposium on Computational Geometry (SoCG), pp. 28:1–28:15 (2016)

  15. Chan, T.M., Tsakalidis, K.: Optimal deterministic algorithms for 2-d and 3-d shallow cuttings. Discrete Comput. Geom. 56(4), 866–881 (2016)

    Article  MathSciNet  MATH  Google Scholar 

  16. Chazelle, B.: On the convex layers of a planar set. IEEE Trans. Inf. Theory 31(4), 509–517 (1985)

    Article  MathSciNet  MATH  Google Scholar 

  17. Chazelle, B., Guibas, L.J.: Fractional cascading: I. A data structuring technique. Algorithmica 1(1–4), 133–162 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  18. Chazelle, B., Guibas, L.J.: Fractional cascading: II. Applications. Algorithmica 1(1–4), 163–191 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  19. Clarkson, K.L., Shor, P.W.: Applications of random sampling in computational geometry, II. Discrete Comput. Geom. 4, 387–421 (1989)

    Article  MathSciNet  MATH  Google Scholar 

  20. Eppstein, D.: Incremental and decremental maintenance of planar width. J. Algorithms 37(2), 570–577 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  21. Hershberger, J., Suri, S.: Offline maintenance of planar configurations. In: Proceedings of the 3rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 32–41 (1991)

  22. Hershberger, J., Suri, S.: Applications of a semi-dynamic convex hull algorithm. BIT 32(2), 249–267 (1992)

    Article  MathSciNet  MATH  Google Scholar 

  23. 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 28th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 2495–2504 (2017)

  24. Mulmuley, K.: Randomized multidimensional search trees: lazy balancing and dynamic shuffling. In: Proceedings of the 32nd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 180–196 (1991)

  25. Munro, J.I.: Tables. In: Proceedings of the 16th Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS), pp. 37–42 (1996)

  26. Overmars, M.H., van Leeuwen, J.: Maintenance of configurations in the plane. J. Comput. Syst. Sci. 23(2), 166–204 (1981)

    Article  MathSciNet  MATH  Google Scholar 

  27. Pratt, S.: Three approaches to building time-windowed geometric data structures. Master’s thesis, Cheriton School of Computer Science, University of Waterloo (2016). https://uwspace.uwaterloo.ca/handle/10012/10654

  28. Preparata, F.P.: An optimal real-time algorithm for planar convex hulls. Commun. ACM 22(7), 402–405 (1979)

    Article  MathSciNet  MATH  Google Scholar 

  29. Preparata, F.P., Shamos, M.I.: Computational Geometry: An Introduction. Springer, New York (1985)

    Book  MATH  Google Scholar 

  30. Schwarzkopf, O.: Dynamic maintenance of geometric structures made easy. In: Proceedings of the 32nd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 197–206 (1991)

  31. Sheng, C., Tao, Y.: FIFO indexes for decomposable problems. In: Proceedings of the 30th ACM Symposium on Principles of Database Systems (PODS), pp. 25–35 (2011)

  32. Zhou, G.: Two-dimensional range successor in optimal time and almost linear space. Inf. Process. Lett. 116(2), 171–174 (2016)

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgements

We wish to thank Haim Kaplan and Micha Sharir for their suggestions, which led to an improvement of an earlier version of Lemma 3.1.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Timothy M. Chan.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

A preliminary version of this work appeared in Proceedings of the 32nd International Symposium on Computational Geometry, 2016 [14]. Much of this work was done while the first and third authors were at the Cheriton School of Computer Science, University of Waterloo, Canada. The work was part of the third author’s Master’s thesis at Waterloo [27]. This research was supported by The Natural Sciences and Engineering Research Council of Canada and an Ontario Graduate Scholarship.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chan, T.M., Hershberger, J. & Pratt, S. Two Approaches to Building Time-Windowed Geometric Data Structures. Algorithmica 81, 3519–3533 (2019). https://doi.org/10.1007/s00453-019-00588-3

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-019-00588-3

Keywords