Finding Rectangle Intersections by Divide-and-Conquer
- 1 July 1984
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. C-33 (7) , 671-675
- https://doi.org/10.1109/tc.1984.5009341
Abstract
In this correspondence we reconsider three geometrical problems for which we develop divide-and-conquer algorithms. The first problem is to find all pairwise intersections among a set of horizontal and vertical line segments. The second is to report all points enclosures occurring in a mixed set of points and rectangles, and the third is to find all pairwise intersections in a set of isooriented rectangles. We derive divide-and-conquer algorithms for the first two problems which are then combined to solve the third. In each case a space-and time-optimal algorithm is obtained, that is O(n) space and O(n log n + k) time, where n is the number of given objects and k is the number of reported pairs. These results show that divide-and-conquer can be used in place of line sweep, without additional asymptotic cost, for some geometrical problems. This raises the natural question: For which class of problems are the line sweep and divide-and-conquer paradigms interchangeable?Keywords
This publication has 5 references indexed in Scilit:
- A practical divide-and-conquer algorithm for the rectangle intersection problemInformation Sciences, 1987
- Optimal algorithms to compute the closure of a set of iso-rectanglesJournal of Algorithms, 1984
- A new approach to rectangle intersectionsInternational Journal of Computer Mathematics, 1983
- An Optimal Worst Case Algorithm for Reporting Intersections of RectanglesIEEE Transactions on Computers, 1980
- Algorithms for Reporting and Counting Geometric IntersectionsIEEE Transactions on Computers, 1979