Largest empty rectangle

From Wikipedia, the free encyclopedia
Jump to: navigation, search

In computational geometry, the largest empty rectangle problem,[1] maximal empty rectangle problem[2] or maximum empty rectangle problem,[3] is the problem of finding a rectangle of maximal size to be placed among obstacles in the plane. There are a number of variants of the problem, depending on the particularities of this generic formulation, in particular, depending on the measure of the "size", domain (type of obstacles), and the orientation of the rectangle.

The problems of this kind arise e.g., in electronic design automation, in design and verification of physical layout of integrated circuits. [4]

A maximal empty rectangle (MER) is a rectangle which is not contained in another empty rectangle. Each side of a MER abuts an obstacle (otherwise the side may be shifted outwards, increasing the empty rectangle). An application of this kind is enumeration of "maximal white rectangles" in image segmentation R&D of image processing and pattern recognition. [5] In the contexts of many algorithms for largest empty rectangles, "maximal empty rectangles" are candidate solutions to be considered by the algorithm, since it is easily proven that, e.g., a maximum-area empty rectangle is a maximal empty rectangle.

Classification[edit]

In terms of size measure, the two most common cases are the largest-area empty rectangle and largest-perimeter empty rectangle.[6]

Another major classification is whether the rectangle is sought among axis-oriented or arbitrarily oriented rectangles.

Special cases[edit]

Maximum-area square[edit]

The case when the sought rectangle is an axis-oriented square may be treated using Voronoi diagrams in L_1metrics for the corresponding obstacle set, similarly to the largest empty circle problem. In particular, for the case of points within rectangle an optimal algorithm of time complexity \Theta(n \log n) is known. [7]

Domain: rectangle containing points[edit]

A problem first discused by Naamad, Lee and Hsu in 1983[8] is stated as follows: given a rectangle A containing n points, find a largest-area rectangle with sides parallel to those of A which lies within A and does not contain any of the given points. Naamad, Lee and Hsu presented an algorithm of time complexity O(\min(n^2,s \log n)), where s is the number of feasible solutions, i.e., maximal empty rectangles. They also proved that s= O(n^2) and gave an example in which s is quadratic in n. Afterwards a number of papers presented better algorithms for the problem.

Domain: line segment obstacles[edit]

The problem of empty isothetic rectangles among isothetic line segments was first considered[9] in 1990.[10] Later a more general problem of empty isothetic rectangles among non-isothetic obstacles was considered.[9]

Generalizations[edit]

Higher dimensions[edit]

In 3-dimensional space, algorithms are known for finding a largest maximal empty isothetic cuboid problem, as well as for enumeration of all maximal isothetic empty cuboids. [11]

See also[edit]

References[edit]

  1. ^ "largest empty rectangle" term usage
  2. ^ "maximal empty rectangle" term usage
  3. ^ "maximum empty rectangle" term usage
  4. ^ Jeffrey Ullman, Computational Aspects of VLSI, Computer Science Press, 1984, ISBN 0-914894-95-1—Chapter 9: "Algorithms for VLSI Design Tools" describes algorithms for polygon operations involved in electronic design automation (design rule checking, circuit extraction, placement and routing).
  5. ^ Baird, H. S., Jones, S. E., Fortune, S.J. " Image segmentation by shape-directed covers", Proc. 10th International Conference on Pattern Recognition, 1990, vol. 1, pp. 820–825, doi:10.1109/ICPR.1990.118223
  6. ^ Alok Aggearwal, Subhash Suri, "Fast algorithms for computing the largest empty rectangle", Proc. 3rd Annu. Symposium on Computational Geometry, 1987, 278–290, doi:10.1145/41958.41988
  7. ^ B. Chazelle, R. L. Drysdale III and D. T. Lee, "Computing the largest empty rectangle", STACS-1984, Lecture Notes in Computer Science, vol. 166, 1984, pp. 43–54, doi:10.1007/3-540-12920-0_4
  8. ^ A. Naamad, D. T. Lee and W.-L. Hsu "On the Maximum Empty Rectangle Problem", Discrete Applied Mathematics 1984, pp. 267–277
  9. ^ a b "Location of Largest Empty Rectangle among Arbitrary Obstacles" p. 159
  10. ^ "Efficient algorithms for identifying all maximal isothetic empty rectangles in VLSI layout design", Proc. FST & TCS – 10, Lecture Notes in Computer Science, vol. 437, 1990, pp. 255–269
  11. ^ S.C. Nandy and B.B. Bhattacharya, "Maximal Empty Cuboids among Points and Blocks", Computers & Mathematics with Applications, vol. 36, issue 3, 1998, pp. 11–20, doi:10.1016/S0898-1221(98)00125-4