Finding Rectangle Intersections by Divide-and-Conquer

  • Authors:
  • Ralf Hartmut Guting;Derick Wood

  • Affiliations:
  • McMaster University, Hamilton, Ont., Canada./ Lehrstuhl Informatik VI, Universitä/t Dortmund, D-4600 Dortmund 50, West Germany.;Data Structuring Group, Department of Computer Science, University of Waterloo, Waterloo, Ont., Canada.

  • Venue:
  • IEEE Transactions on Computers
  • Year:
  • 1984

Quantified Score

Hi-index 14.99

Visualization

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?