skip to main content
research-article
Open access

Optimal (Multiway) Spatial Joins

Published: 07 November 2024 Publication History

Abstract

In a spatial join, we are given a constant number k ≥ 2 of sets - denoted as R1, R2, ..., Rk - containing axis-parallel rectangles in a 2D space. The objective is to report all k-tuples (r1, r2, ..., rk ) ∈ R1 × R2 × ... × Rk where the rectangles r1, r2, ..., rk have a non-empty intersection, i.e., r1 ∩ r2 ∩ ... ∩ rk ≠ ∅. The problem holds significant importance in spatial databases and has been extensively studied in the database community. In this paper, we show how to settle the problem in O(n logn + OUT) time - regardless of the constant k - where n = Ík i=1 |Ri | and OUT is the result size (i.e., the total number of k-tuples reported). The runtime is asymptotically optimal in the class of comparison-based algorithms, to which our solution belongs. Previously, the state of the art was an algorithm with running time O(n log2k-1 n + OUT).

References

[1]
Pankaj K. Agarwal, Lars Arge, Haim Kaplan, Eyal Molad, Robert Endre Tarjan, and Ke Yi. An optimal dynamic data structure for stabbing-semigroup queries. SIAM Journal of Computing, 41(1):104--127, 2012.
[2]
Noga Alon, Raphael Yuster, and Uri Zwick. Finding and counting given length cycles. Algorithmica, 17(3):209--223, 1997.
[3]
Lars Arge, Octavian Procopiuc, Sridhar Ramaswamy, Torsten Suel, Jan Vahrenhold, and Jeffrey Scott Vitter. A unified approach for indexed and non-indexed spatial joins. In Proceedings of Extending Database Technology (EDBT), volume 1777 of Lecture Notes in Computer Science, pages 413--429, 2000.
[4]
Thomas Brinkhoff, Hans-Peter Kriegel, and Bernhard Seeger. Efficient processing of spatial joins using R-trees. In Proceedings of ACM Management of Data (SIGMOD), pages 237--246, 1993.
[5]
Mark de Berg, Otfried Cheong, Marc van Kreveld, and Mark Overmars. Computational Geometry: Algorithms and Applications. Springer-Verlag, 3rd edition, 2008.
[6]
David P. Dobkin and Richard J. Lipton. On the complexity of computations under varying sets of primitives. Journal of Computer and System Sciences (JCSS), 18(1):86--91, 1979.
[7]
Himanshu Gupta, Bhupesh Chawda, Sumit Negi, Tanveer A. Faruquie, L. Venkata Subramaniam, and Mukesh K. Mohania. Processing multi-way spatial joins on map-reduce. In Proceedings of Extending Database Technology (EDBT), pages 113--124, 2013.
[8]
Edwin H. Jacox and Hanan Samet. Spatial join techniques. ACM Transactions on Database Systems (TODS), 32(1):7, 2007.
[9]
Mahmoud Abo Khamis, George Chichirim, Antonia Kormpa, and Dan Olteanu. The complexity of boolean conjunctive queries with intersection joins. In Proceedings of ACM Symposium on Principles of Database Systems (PODS), pages 53--65, 2022.
[10]
Nick Koudas and Kenneth C. Sevcik. Size separation spatial join. In Proceedings of ACM Management of Data (SIGMOD), pages 324--335, 1997.
[11]
Ming-Ling Lo and Chinya V. Ravishankar. Spatial joins using seeded trees. In Proceedings of ACM Management of Data (SIGMOD), pages 209--220, 1994.
[12]
Ming-Ling Lo and Chinya V. Ravishankar. Spatial hash-joins. In Proceedings of ACM Management of Data (SIGMOD), pages 247--258, 1996.
[13]
Nikos Mamoulis and Dimitris Papadias. Constraint-based algorithms for computing clique intersection joins. In Robert Laurini, Kia Makki, and Niki Pissinou, editors, Proceedings of ACM Symposium on Advances in Geographic Information Systems (GIS), pages 118--123, 1998.
[14]
Nikos Mamoulis and Dimitris Papadias. Multiway spatial joins. ACM Transactions on Database Systems (TODS), 26(4):424--475, 2001.
[15]
Nikos Mamoulis and Dimitris Papadias. Slot index spatial join. IEEE Transactions on Knowledge and Data Engineering (TKDE), 15(1):211--231, 2003.
[16]
Edward M. McCreight. Priority search trees. SIAM Journal of Computing, 14(2):257--276, 1985.
[17]
Eunjin Oh and Hee-Kap Ahn. Finding pairwise intersections of rectangles in a query rectangle. Comput. Geom., 85, 2019.
[18]
Dimitris Papadias, Nikos Mamoulis, and Yannis Theodoridis. Processing and optimization of multiway spatial joins using R-trees. In Proceedings of ACM Symposium on Principles of Database Systems (PODS), pages 44--55, 1999.
[19]
Jignesh M. Patel and David J. DeWitt. Partition based spatial-merge join. In Proceedings of ACM Management of Data (SIGMOD), pages 259--270, 1996.
[20]
Saladi Rahul, Ananda Swarup Das, Krishnan Sundara Rajan, and Kannan Srinathan. Range-aggregate queries involving geometric aggregation operations. In Proceedings of International Conference onWALCOM: Algorithms and Computation, volume 6552, pages 122--133, 2011.
[21]
Yufei Tao and Ke Yi. Intersection joins under updates. Journal of Computer and System Sciences (JCSS), 124:41--64, 2022.

Cited By

View all
  • (2024)Efficient Unsupervised Community Search with Pre-Trained Graph TransformerProceedings of the VLDB Endowment10.14778/3665844.366585317:9(2227-2240)Online publication date: 6-Aug-2024
  • (2024)Survey of vector database management systemsThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-024-00864-x33:5(1591-1615)Online publication date: 15-Jul-2024
  • (2024)Intent‐Based Network Configuration Using Large Language ModelsInternational Journal of Network Management10.1002/nem.231335:1Online publication date: 18-Dec-2024

Index Terms

  1. Optimal (Multiway) Spatial Joins

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    Proceedings of the ACM on Management of Data  Volume 2, Issue 5
    PODS
    November 2024
    363 pages
    EISSN:2836-6573
    DOI:10.1145/3703846
    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: 07 November 2024
    Published in PACMMOD Volume 2, Issue 5

    Permissions

    Request permissions for this article.

    Author Tags

    1. computational geometry
    2. multiway spatial joins
    3. theory

    Qualifiers

    • Research-article

    Funding Sources

    • RGC

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)183
    • Downloads (Last 6 weeks)43
    Reflects downloads up to 25 Feb 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Efficient Unsupervised Community Search with Pre-Trained Graph TransformerProceedings of the VLDB Endowment10.14778/3665844.366585317:9(2227-2240)Online publication date: 6-Aug-2024
    • (2024)Survey of vector database management systemsThe VLDB Journal — The International Journal on Very Large Data Bases10.1007/s00778-024-00864-x33:5(1591-1615)Online publication date: 15-Jul-2024
    • (2024)Intent‐Based Network Configuration Using Large Language ModelsInternational Journal of Network Management10.1002/nem.231335:1Online publication date: 18-Dec-2024

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Login options

    Full Access

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy