Counting and Reporting Intersections of d-Ranges
- 1 March 1982
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. C-31 (3) , 181-187
- https://doi.org/10.1109/tc.1982.1675973
Abstract
We present a solution to the problem of reporting and counting all pairs of intersecting or overlapping d-ranges in a given set of n d-ranges. A d-range is a rectilinearly oriented rectangular d-dimensional box or brick. The three-dimensional case is presented in some detail and an 0(n log22n + k) time and 0(n log22n) space algorithm is developed for the reporting problem, where k is the number of reported intersecting pairs. This gives an 0(n log22n) time and 0(n log2n) space algorithm for the counting problem. Apart from its usefulness wherever a "bounding boxes" technique is used, the development of the algorithm is of interest in its own right because of the data structures that are introduced and because of the technique used to reduce the time needed for preprocessing. Finally, the algorithm is generalized to give an 0(2d−1n log2d−n+ k) time and an 0(2d−1n log2d−n) space algorithm for the d-range intersection reporting problem for d ≥ 2, which again reduces to an 0(2d−1n log2d−1n) time and 0(2d−1n log2d−2n) space algorithm for the counting problem. Finally, we sketch how the reporting problem can be carried out with the same space requirements as the counting problem. The bounds presented are the best known to date.Keywords
This publication has 8 references indexed in Scilit:
- The art of dynamizingPublished by Springer Nature ,1981
- The rectangle intersection problem revisitedBIT Numerical Mathematics, 1980
- Data structures for the rectangle containment and enclosure problemsComputer Graphics and Image Processing, 1980
- An Optimal Worst Case Algorithm for Reporting Intersections of RectanglesIEEE Transactions on Computers, 1980
- Efficient worst-case data structures for range searchingActa Informatica, 1980
- Concurrent operations in large ordered indexesLecture Notes in Computer Science, 1980
- On the Division of the Plane by LinesThe American Mathematical Monthly, 1978
- Geometric intersection problemsPublished by Institute of Electrical and Electronics Engineers (IEEE) ,1976