Largest Empty Rectangle
   HOME

TheInfoList



OR:

In
computational geometry Computational geometry is a branch of computer science devoted to the study of algorithms which can be stated in terms of geometry. Some purely geometrical problems arise out of the study of computational geometric algorithms, and such problems ar ...
, the largest empty rectangle problem, maximal empty rectangle problem or maximum empty rectangle problem, is the problem of finding a
rectangle In Euclidean plane geometry, a rectangle is a quadrilateral with four right angles. It can also be defined as: an equiangular quadrilateral, since equiangular means that all of its angles are equal (360°/4 = 90°); or a parallelogram containi ...
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 Electronic design automation (EDA), also referred to as electronic computer-aided design (ECAD), is a category of software tools for designing Electronics, electronic systems such as integrated circuits and printed circuit boards. The tools wo ...
, in design and verification of
physical layout Integrated circuit layout, also known IC layout, IC mask layout, or mask design, is the representation of an integrated circuit in terms of planar geometric shapes which correspond to the patterns of metal, oxide, or semiconductor layers that make ...
of
integrated circuit An integrated circuit or monolithic integrated circuit (also referred to as an IC, a chip, or a microchip) is a set of electronic circuits on one small flat piece (or "chip") of semiconductor material, usually silicon. Large numbers of tiny ...
s. A maximal empty rectangle is a rectangle which is not contained in another empty rectangle. Each side of a maximal empty rectangle 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 An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensiona ...
and pattern recognition. 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

In terms of size measure, the two most common cases are the largest-area empty rectangle and largest-perimeter empty rectangle. Another major classification is whether the rectangle is sought among
axis-oriented In geometry, an axis-aligned object (axis-parallel, axis-oriented) is an object in ''n''-dimensional space whose shape is aligned with the coordinate axes of the space. Examples are axis-aligned rectangles (or hyperrectangles), the ones with edge ...
or arbitrarily oriented rectangles.


Special cases


Maximum-area square

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 In computational geometry, the largest empty sphere problem is the problem of finding a hypersphere of largest radius in ''d''-dimensional space whose interior does not overlap with any given obstacles. Two dimensions The largest empty circl ...
problem. In particular, for the case of points within rectangle an optimal algorithm of time complexity \Theta(n \log n) is known.


Domain: rectangle containing points

A problem first discussed by Naamad, Lee and Hsu in 1983 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

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


Generalizations


Higher dimensions

In 3-dimensional space, algorithms are known for finding a largest maximal empty isothetic
cuboid In geometry, a cuboid is a hexahedron, a six-faced solid. Its faces are quadrilaterals. Cuboid means "like a cube", in the sense that by adjusting the length of the edges or the angles between edges and faces a cuboid can be transformed into a cub ...
problem, as well as for enumeration of all maximal isothetic empty cuboids.


See also

*
Largest empty sphere In computational geometry, the largest empty sphere problem is the problem of finding a hypersphere of largest radius in ''d''-dimensional space whose interior does not overlap with any given obstacles. Two dimensions The largest empty circle ...
* Minimum bounding box, Minimum bounding rectangle


References

{{reflist Geometric algorithms