Optimal (Multiway) Spatial Joins
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 log 2k-1 n + OUT).
Authors
- Yufei Tao (ORCID: https://orcid.org/0000-0003-3883-5452)
- R. Wang (ORCID: https://orcid.org/0009-0009-1630-9196)
Institutions
- Chinese University of Hong Kong (HK)
Publication Details
- Journal
- Proceedings of the ACM on Management of Data
- Published
- 2024-11-04
- DOI
- https://doi.org/10.1145/3695828
- Citations
- 1
- Primary Topic
- Data Management and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 0.35