English

Maximizing the area of intersection of rectangles

Data Structures and Algorithms 2017-03-28 v1

Abstract

This paper attacks the following problem. We are given a large number NN of rectangles in the plane, each with horizontal and vertical sides, and also a number r<Nr<N. The given list of NN rectangles may contain duplicates. The problem is to find rr of these rectangles, such that, if they are discarded, then the intersection of the remaining (Nr)(N-r) rectangles has an intersection with as large an area as possible. We will find an upper bound, depending only on NN and rr, and not on the particular data presented, for the number of steps needed to run the algorithm on (a mathematical model of) a computer. In fact our algorithm is able to determine, for each srs\le r, ss rectangles from the given list of NN rectangles, such that the remaining (Ns)(N-s) rectangles have as large an area as possible, and this takes hardly any more time than taking care only of the case s=rs=r. Our algorithm extends to dd-dimensional rectangles. Our method is to exhaustively examine all possible intersections---this is much faster than it sounds, because we do not need to examine all (Ns)\binom Ns subsets in order to find all possible intersection rectangles. For an extreme example, suppose the rectangles are nested, for example concentric squares of distinct sizes, then the only intersections examined are the smallest s+1s+1 rectangles.

Keywords

Cite

@article{arxiv.1703.08658,
  title  = {Maximizing the area of intersection of rectangles},
  author = {David B. A. Epstein and Mike Paterson},
  journal= {arXiv preprint arXiv:1703.08658},
  year   = {2017}
}

Comments

16 pages, 1 figure

R2 v1 2026-06-22T18:56:40.804Z