Covering Simple Orthogonal Polygons with Rectangles
Abstract
We study the problem of Covering Orthogonal Polygons with Rectangles, focusing on three variants: covering the interior, the boundary, and the corners. While previous work provided constant-factor approximation algorithms for these problems, significant improvements had not been achieved for over two decades. The main contribution of this work is the development of a Polynomial Time Approximation Scheme (PTAS) for both the Boundary Cover and Corner Cover problems on simple polygons, using a local search algorithm. Our work advances the state of the art, improving upon the previous best-known -approximation for the Boundary Cover and -approximation for the Corner Cover problems.
The technical core of our work lies in proving the existence of planar support graphs for certain geometric hypergraphs defined by the polygon and its containment-maximal rectangles. This structural insight enables the application of the local search framework to achieve the PTAS results. We also demonstrate the limitations of this approach by constructing instances where local search fails for the Interior Cover and certain dual problems, such as the Maximum Antirectangle and Hitting Set problems. Additionally, the methods yield a PTAS for a special case of the Discrete Independent Set problem for rectangles. These results not only settle longstanding open questions but also introduce new techniques that may be of independent interest within computational geometry.
Keywords and phrases:
Polygon Covering, Approximation Algorithms, Orthogonal Polygons, Rectangles, Local Search, Planar SupportsCategory:
APPROXFunding:
Aniket Basu Roy: BITS Pilani NFSG ref. N5/25/10522012 ACM Subject Classification:
Theory of computation Computational geometryAcknowledgements:
The author is thankful to the Theory group at Aarhus, particularly to Peyman Afshani and Chris Schwiegelshohn. Also, thanks to Sourav Chakraborty and Abhiruk Lahiri for their valuable feedback, which improved the presentation of the paper. Lastly, the author would like to thank Nguyễn Kim Thắng for insightful discussions on the Interior Cover problem during the pandemic days.Editors:
Alina Ene and Eshan ChattopadhyaySeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Covering orthogonal polygons with the minimum number of rectangles is a fundamental problem in computational geometry, with direct applications in image compression [37], satellite image mosaic selection [46], and access control lists in network routers [4]. Given a polygon whose sides are all axis-aligned, the goal is to cover it exactly with the smallest set of axis-parallel rectangles. This problem, also known as the rectilinear picture compression problem, has been known to be NP-hard for decades, even for polygons without holes [23].
The best-known polynomial time approximation algorithm independent of the number of holes in the polygon has an approximation ratio of due to Kumar and Ramesh [39]. Franzblau gave a -approximation algorithm which implies a -factor approximation for simple polygons [27], where is the number of holes.
Variants of the problem have also been studied. The Boundary Cover problem asks for the minimum number of rectangles to cover the boundary of the polygon, while the Corner Cover problem focuses on covering just the corners. In 1981, Chaiken, Kleitman, Saks, and Shearer [15] studied their respective duality gaps, whereas Culberson and Reckhow [23] proved that even the boundary cover problem is NP-hard for hole-free polygons. Furthermore, the problem was proved to be -hard when we allow holes in the polygon for the interior cover as well as the boundary cover problem by Berman and DasGupta [11].
Although several articles have been published over the years, especially from the perspective of applications [46, 37] and experiments [31, 34], researchers have failed to make any theoretical improvements for the last two decades.
In this work, we settle the status of the Boundary Cover problem by showing a Polynomial Time Approximation Scheme (PTAS) using Local Search for simple orthogonal polygons. To our knowledge, the best-known approximation factor is since 1997 [11]. See Table 1 for an overview of the known results and our contributions.
| Without holes | Possibly with holes | |
|---|---|---|
| Corner | -apx [11], PTAS | NP-h [11], -apx [11] |
| Boundary | NP-h [23], PTAS | NP-h [22], -apx [11], -h [11] |
| Interior | NP-h [23], -apx [27] | NP-h [28], -apx [39], -h [11] |
1.1 Our Contribution
We prove that Local Search yields a PTAS for the Boundary Cover problem on simple orthogonal polygons, improving the previous best-known -approximation [11]. We show that the same Local Search approach also gives a PTAS for the Corner Cover problem on simple polygons, surpassing the earlier -approximation [11]. Our main technical advance is to show that, for any simple orthogonal polygon, the hypergraph defined by its containment-maximal rectangles and boundary points admits a planar support graph. This structural property is the key to enabling the PTAS results. As a by-product, we obtain a PTAS for a special case of the Discrete Independent Set problem for rectangles, where the rectangles are containment-maximal with respect to a fixed simple orthogonal polygon and the point set lies on the boundary. We also establish the limitations of this Local Search framework: for the Interior Cover problem and for dual problems like Maximum Antirectangle and Hitting Set (with points restricted to the boundary), we construct instances where the Local Search solution size can be arbitrarily far from that of the optimal solution.
In the following, we define a few terms and state our results. Given a simple orthogonal polygon and a family of containment-maximal rectangles contained in , for every point we define a hyperedge . Thus we define a hypergraph where the vertex set is and the hyperedges are for every . For the sake of brevity, we shall denote as . We denote its dual hypergraph by . Clearly, the Boundary Cover problem is the Set Cover problem on the class of hypergraphs , i.e., covering with a minimum sized subset of .
Below we state our result on the Boundary Cover problem which improves upon the -approximation algorithm by Berman and DasGupta [11].
Theorem 1.
Local Search yields a PTAS for the Boundary Cover problem for simple orthogonal polygons.
The same Local Search algorithm yields a PTAS for the Corner Cover problem improving upon their -approximation algorithm for simple polygons [11]. However, it is not known whether the Corner Cover problem is NP-hard when the polygons are simple.
Theorem 2.
Local Search yields a PTAS for the Corner Cover problem for simple orthogonal polygons.
The Maximum Independent Set of Rectangles problem has garnered a lot of attention in the past years [3, 16]. In the recent past, Mitchell made a breakthrough [40] by proving a -approximation algorithm which was subsequently improved to by Gálvez, Khan, Mari, Mömke, Reddy, and Wiese [30]. There is a QPTAS known due to Adamaszek and Wiese [2], and the open question is to find a PTAS. The discrete version of the problem, the Maximum Discrete Independent Set of Rectangles (MDISR) has also been studied where apart from the family of rectangles there is also a point set as part of the input. Here two rectangles are said to have a discrete intersection if their (continuous) intersection also contains an input point. For this problem, the only known result is an -approximation algorithm by Ene, Har-Peled, and Raichel [26]. A PTAS is known via Local Search for this discrete version if we replace rectangles with non-piercing regions111A family of geometric objects is called non-piercing if for every pair of intersecting objects and , both and are simply connected regions. Observe that rectangles are piercing regions. [10].
The Maximum Independent Set problem on the hypergraph translates to a special class of the MDISR problem where the rectangles are containment-maximal rectangles with respect to some fixed input simple orthogonal polygon and the input point set is a subset of the boundary of .
Theorem 3.
Local Search yields a PTAS for the Maximum Independent Set problem on the geometric hypergraph .
In order to show the PTAS, our main technical contribution is to show the existence of planar support for the above hypergraphs defined on the boundary cover problem instance as stated below. Informally, given a hypergraph , we say is a support graph of if for every hyperedge , the induced subgraph is connected. In addition, if is planar we call it a planar support. See Definition 9 for a formal definition.
Theorem 4 (Planar Support for Boundary Cover).
Given a simple orthogonal polygon and a set of containment-maximal rectangles with respect to , there exists a planar support graph for .
In order to prove this theorem, we observe many novel properties of containment-maximal rectangles, which could be of independent interest and useful elsewhere. As a corollary of this theorem, it immediately follows that Local Search yields a PTAS for the boundary cover problem and the corner cover problem by applying a result by Mustafa and Ray [41]. Similarly, Theorem 4 also implies Theorem 3 from a result by Chan and Har-Peled [20]. These Local Search results by Chan and Har-Peled [20], and Mustafa and Ray [41] were independently devised and constitute the above-mentioned Local Search framework. Please refer to Subsection 2.1 for more on this framework. For the rest of this article, the reader may alternatively consider the framework as a black box, and focus on the proof of Theorem 4.
On the negative side, we construct interior cover problem instances whose minimal support graphs contain arbitrarily large bicliques, thus implying that a PTAS cannot be attained using the above Local Search framework.
Theorem 5.
For every , there exists simple orthogonal polygon and an interior cover such that every arbitrary support graph of contains .
The Maximum Antirectangle problem restricted to the boundary of the polygon is the same as the Maximum Independent Set problem for the dual hypergraph , i.e., find a maximum sized subset such that for every , . We give a negative result for this problem (also known as the maximum hidden set problem) by showing the existence of instances such that the dual intersection graphs have arbitrarily large bicliques, thus implying Local Search solution can be arbitrarily smaller than the optimum solution.
Theorem 6.
There exist simple polygons for which the local optimum solution size can be arbitrarily smaller than that of the global optimum solution for the Maximum Antirectangle problem.
To the best of our knowledge, this problem has only been studied in the context of obtaining duality gaps. However, for the more general problem when the point set and the family of rectangles can be arbitrary, there is an -approximation algorithm known due to Chan [17].
The exact same construction as above also implies the same for the Hitting Set problem for the hypergraph .
Theorem 7.
There exist simple polygons for which the local optimum solution size can be arbitrarily larger than that of the global optimum solution for the Minimum Hitting Set problem for .
Again we are unaware of any Hitting Set result for this restricted hypergraph. However, for general rectangle hypergraphs the problem enjoys an -approximation algorithm via -nets [5]. There are also matching lower bounds on the size of -nets due to Pach and Tardos [42] which implies one cannot hope to improve the approximation factor using -nets or by using the natural set cover LP relaxation [12]. The problem is also known to be -hard due to Chan and Grant [18] even when the boundary of every pair of rectangles intersects or times.
Please refer to Section 2 for the precise definitions of the above problems.
1.1.1 Technical Overview and Organization
There are broadly two parts to our proof of the existence of the planar supports for hypergraphs defined on the boundary cover instances. If we think of the existence of planar supports as the desired property then we prove that this property is hereditary, i.e., for a fixed simple orthogonal polygon , if a family of rectangles satisfies the property then so does any of its sub-families (Lemma 31 in Section 4). We also prove that the complete families of containment-maximal rectangles have this property (Lemma 33 in Section 5). By complete we mean the set of all possible containment-maximal rectangles with respect to .
The central idea in proving the hereditary property is that if a family has a star graph as its support then the family without the rectangle corresponding to the center of the star, still has a planar support. See Figure 1 for an example and Section 3 for the technical details.
We prove the planar support property for complete family of rectangles by induction on some appropriate complexity of the polygon. Given an orthogonal polygon , we prove that if the statement is true for a complete family with respect to a smaller polygon, then it is also true for the complete family with respect to . The formal statement can be found in Section 5.
1.2 Related Work
Given an orthogonal polygon , define a graph where is a finite point set in , and if there exists an axis-parallel rectangle such that . Observe that a polygon covering corresponds to a clique cover in if is sufficiently dense in 222E.g., extend all the sides of to form a grid. Define to be all the grid points that are in .. A natural lower bound is the size of an independent set in , which is also called an antirectangle. The minimum clique cover size is denoted by and the maximum antirectangle (independent set) size is denoted by . As mentioned by Chaiken et al. [15], Chvátal asked whether , which was disproved by Szemerédi by constructing a polygon with and . Chung managed to attain the same bound using a simple polygon. Erdős asked whether there exists a constant such that . The only known upper bound is due to Franzblau [27].
Covering general polygons (not-necessarily orthogonal) by minimum number of convex polygons has also been studied and it is known as the Convex Cover problem and its dual problem is known as the Hidden Set problem. There has been recent progress made by Browne, Kasthurirangan, Mitchell, and Polishchuk [13], where they proved approximation ratios of and for the covering and its dual problem, respectively. On the other hand Abrahamsen proved that the Convex Corner problem is -complete [1].
Even more generally, Haussler and Welzl proved that any hypergraph with VC-dimension admits -nets of size [33]. Using the multiplicative weight update method by Brönnimann and Goodrich [12], this implies an -approximation for the corresponding covering problem. For general rectangle families, there are also matching lower bounds of [42]. Also see [19, 21, 47] that studies other measures of complexity of geometric hypergraphs like union complexity and shallow cell complexity which have an effect on the approximation factors of the corresponding covering problem.
Also, the authors in [4] studied the Rectangle Rule List Minimization problem, which is a generalization of the Orthogonal Polygon Covering problem.
2 Preliminaries
All polygons are assumed to be orthogonal, i.e., their sides are parallel to either the vertical or horizontal axes. A polygon is said to be simple if it has no holes, i.e., it is simply connected. Given a simple orthogonal polygon , we denote to be the boundary of . All rectangles are assumed to be axis-parallel. A rectangle is called containment-maximal with respect to a polygon if is not contained in a rectangle of larger area. Henceforth, we shall use the word “maximal” to denote containment-maximal for the sake of brevity. Observe, as a consequence of maximality, all four sides of have non-empty intersection with . We denote to be the set of all maximal rectangles with respect to , also referred as the complete family of rectangles with respect to .
Definition 8 (Blocker of a Maximal Rectangle).
Given an orthogonal polygon and a maximal rectangle , any point is called a blocker of if and is not a corner of . If intersects the top (resp. bottom, left, right) side of then is called a top (resp. bottom, left, right) blocker of .
For the sake of brevity, we shall sometimes call a side of to be a blocker of if .
Definition 9 (Support graph of a hypergraph).
Given a hypergraph where is the vertex set and is a family of subsets of , we say is a support graph of if for every , the subgraph induced on F, is connected.
See Figure 1 for an example of a family of maximal rectangles with respect to polygon on the left, and a planar support graph for the hypergraph to its right. Observe, that the intersection graph of the rectangles is always a valid support graph, which may not be planar.
Interior Cover problem Input: An orthogonal polygon in the plane. Question: A minimum sized set of rectangles such that
Boundary Cover problem Input: An orthogonal polygon in the plane. Question: A minimum sized set of rectangles such that
Corner Cover problem Input: An orthogonal polygon in the plane. Question: A minimum sized set of rectangles such that where denotes the set of corners of .
Maximum Independent Set problem for Input: An orthogonal polygon in the plane and a set of containment-maximal rectangles with respect to . Question: A maximum sized subset of rectangles such that for every , there does not exist a point where .
Maximum Antirectangle problem Input: An orthogonal polygon in the plane. Question: A maximum sized set of points such that for every , there does not exist a rectangle where .
Minimum Hitting Set problem for Input: An orthogonal polygon in the plane and a set of containment-maximal rectangles with respect to . Question: A minimum sized point set such that for every , .
2.1 Local Search Framework
Local search has been a very useful heuristic for decades, and has been proved to give good approximation ratios, particularly for clustering and geometric optimization algorithm [6, 29]. In this work, we will consider the particular Local Search framework introduced by Mustafa and Ray for covering problems in [41]. Almost the same framework works for packing problems, which was introduced around the same time by Chan and Har-Peled in [20]. Over the years, this framework has been used for a variety of packing and covering problems [7, 8, 9, 10, 32, 38, 43, 44]. As a consequence of this framework, it is sufficient to show the existence of a sparse support graph for a hypergraph: in order to prove that Local Search yields a PTAS for the corresponding covering problem. Here by sparse, we mean the graph has strongly sublinear separators, which is a necessary condition for planarity.
The study of planar supports predates the Local Search framework in question. It has been studied in the context of hypergraph drawing. See [14, 35, 36], and Section 2 in [44] for a short survey. Durocher and Fraser [25] were arguably the first to make the connection and use the word “support” in the context of Local Search for covering problems.
Below, we state an abstraction of the result of Mustafa and Ray [41].
Lemma 10.
Given a hypergraph where is the vertex set and is a family of subsets of , we want to compute the minimum sized such that for every , . If there exists a planar support of , then the Local Search algorithm computes a -approximate solution in time , for .
Conversely, we state an abstraction of the result of Chan and Har-Peled [20]. Before that we define the dual intersection graph of a subset with respect to hypergraph . The vertex set is , and for every , if there exists such that .
Lemma 11.
Given a hypergraph where is the vertex set and is a family of subsets of , we want to compute the maximum sized such that for every , . Let be an optimum solution and be the solution returned by the Local Search algorithm. If the dual intersection graph of with respect to is planar, then the Local Search algorithm computes a -approximate solution in time , for .
Lastly, see below for the Local Search algorithm for covering the boundary of the input simple polygon , where is the Local Search parameter which is set to for some appropriate constant .
2.2 Intersection Patterns
Given a simple orthogonal polygon , if two maximal rectangles and with respect to have a non-empty intersection then they intersect in one of the following ways:
-
1.
Corner Intersection. has exactly one corner of in its interior and vice versa.
-
2.
Piercing Intersection. The two vertical (resp. horizontal) sides of intersect the two horizontal (resp. vertical) sides of .
Furthermore, if and have a piercing intersection and one of the sides of is contained in one of the sides of then we say that the two rectangles are aligned to each other. See Figure 2.
Definition 12.
Given a simple orthogonal polygon and a set of maximal rectangles with respect to , define a binary relation . If for every such that and have a piercing intersection and the two vertical sides of intersect the two horizontal sides of then we say .
Observe that is irreflexive, asymmetric, and transitive and hence defines a strict partial order on . More informally, we say if they have a piercing intersection and the width of is less than that of .
2.3 Left-Right Coloring
In this section, we recall a few definitions and results from a series of work by de Fraysseix, Ossona de Mendez, and Rosenstiehl [24]. They presented the Left-Right Coloring technique that can be used to test whether a graph is planar. Fix some arbitrary vertex in the graph as the root and traverse in a depth-first way. Thus we get a DFS tree, whose edges are subset of the given graph. Left-Right Coloring is a coloring (partitioning) of the cotree edges (the edges in the graph that are not in the DFS tree) such that if such a coloring is possible then cotree edges can be drawn without crossing each other, thus implying the given graph is planar.
Definition 13 (DFS-orientation).
Given an undirected, connected graph and a fixed vertex , its DFS-orientation is a directed graph where is the set of the tree edges obtained by depth-first traversal of starting from , and is the set of cotree edges. For every tree edge , if is traversed before in the depth-first traversal then there is a directed edge in . Conversely, for every cotree edge , if is traversed before in the depth-first traversal then there is a directed edge in .
Thus, defines a partial order on where the root of is the minimum vertex with respect to this partial order. In the following, terms like high and low are used with respect to the same partial order. Given a tree edge , return edges of are the cotree edges such that is a descendant of or , and is an ancestor of that is different from . Define a mapping , where for every , is the minimum vertex with respect to the partial order that can be reached by a directed path starting with and containing at most one cotree edge.
Definition 14 (Left-Right Coloring).
Let be a DFS-oriented graph. A bipartition of its cotree edges into two classes, referred to as left and right, is called left-right coloring, if for every and outgoing edges and from , the following two conditions are satisfied.
-
All return edges of ending strictly higher than belong to one class, and
-
All return edges of ending strictly higher than belong to the other class.
Lemma 15 ([24]).
A finite graph is planar if and only if there exists a Left-Right coloring of the cotree edges with respect to a depth-first-tree on .
3 Family of Rectangles with a Kernel
The main results of this section are Lemmata 18 and 30, which in turn are used to prove Lemma 31 in Section 4. In the following, we define a kernel of a rectangle family. Informally, Lemma 18 says that if a rectangle family has a star graph as its support, then the rectangle corresponding to the center of the star belongs to the kernel. Lemma 30 states that a family of rectangles without its kernel still has a planar support.
Definition 16 (Kernel of a Family).
Given a family of maximal rectangles with respect to a simple polygon , the kernel of is defined as follows.
where .
A family with non-empty kernel is called proper if for every there exists such that . See Figure 3 for an example of a family that is not proper.
Observation 17.
Every proper family with a non-empty kernel has a support that is a star graph with the center vertex corresponding to a kernel rectangle.
In the following, we show that the converse is also true.
Lemma 18.
Given a family of maximal rectangles with respect to a simple orthogonal polygon . If there exists a minimal support graph of such that is a star graph then the rectangle corresponding to the center of belongs to and is proper.
Proof.
Let be the center of . As is a minimal support graph of , for every such that , . If there exists such that and then is not supported by and hence a contradiction. This implies .
is proper because otherwise there are isolated vertices in a minimal support.
Throughout this section we assume to be proper and have a non-empty kernel. Without loss of generality, we consider to have a unique kernel rectangle, i.e., . From Definition 12, we can partition the family without its kernel rectangle into the following subsets. The set of rectangles that have a corner intersection with that we denote by . The remaining rectangles in have a piercing intersection with . Among the ones having a piercing intersection, we call the rectangles to be vertical rectangles if , i.e., . Likewise, we call the rectangles to be horizontal rectangles if , i.e., . Thus, .
Lemma 19.
Let such that it contains the top-right corner of . If there exists such that , then is either aligned to the top side and/or the right side of .
Proof.
Given , a corner rectangle, there exists two points and where . See Figure 4. As and is proper, at least one or both and belongs to . If there exists such that then either or or both are contained in . Without loss of generality, assume that . Then observe that the top side of is aligned with the top side of . The left side of cannot be aligned with the left side of , because otherwise there exists a point such that , which implies is not a kernel rectangle. See Figure 4. Similarly, if then the right side of is aligned with the right side of .
The following observation can be made from Lemma 19.
Observation 20.
For , .
Lemma 21.
Given a proper family with kernel rectangle , there are at most corner rectangles, and containing a fixed corner of . Furthermore, and pierce each other in a non-aligned way.
Proof.
Let and be two corner rectangles, i.e., and they contain the top-right corner of . We do a case analysis below and conclude that and can only have a piercing intersection in a non-aligned way.
-
1.
Assume and have a corner intersection between themselves. Without loss of generality, further assume that the left side of is to the left of that of . There are two subcases. First, the top side of is above that of . Second, the top side of is below that of .
-
2.
Assume and have a piercing intersection. The first subcase is that they are aligned to each other and the second subcase is that they are not.
Without loss of generality, assume one of the sides of , is aligned to , the corresponding side of and . As is maximal, . This also implies that . Then it contradicts Observation 20 (see Figure 5, part ).
For an example of and having a non-aligned piercing intersection, see part of Figure 5.
Next assume, that there is a third rectangle that also contains the top-right corner of and . This implies , which means is not proper and hence contradiction (see Figure 5, part ).
As a consequence of Lemma 21, we know that there are at most corner rectangles in , at most per corner of . If there is a unique corner rectangle containing the top-right corner of , we shall denote it by . If there are two of them then we shall denote them by and , where . In general, a corner rectangle is denoted by , where and .
3.1 Vertical and Horizontal Rectangles
We define the subset of maximally vertical rectangles with respect to the partial order as . Similarly, we define the subset of minimally horizontal rectangles .
Lemma 22.
There does not exist rectangles (resp. ) such that each one has a corner intersection with the other two in , i.e., , , and .
Proof.
Assume there exist rectangles, such that , , and . Combinatorially, triple of rectangles can be have pairwise corner intersection in two ways as shown in Figure 6. If the triple intersect as shown on the left then which is a contradiction. If the triple intersect as shown on the right then the bottom side of and the right side of are completely in the interior of the union of the other two. This implies and are not maximal which is a contradiction.
Lemma 22 implies that we can linearly order the rectangles in (resp. ) as shown below.
Definition 23.
Define a linear ordering on the rectangles in , such that if the left side of is to the left of that of , for every .
Let , where .
Definition 24.
Define a linear ordering on the rectangles in , such that if the bottom side of is below that of , for every .
Let , where .
Lemma 25.
Let such that . There does not exist such that and .
Proof.
Without loss of generality, assume . For the sake of contradiction, lets assume such an exists. Then should be within the left side of and the right side of in order to have a piercing intersection with them. If is aligned to then they have an intersection with outside , which means is not a kernel rectangle, hence a contradiction (see the left half of Figure 7). Same is the case if it is aligned to . If it is aligned to neither nor , then , which means is not proper, hence a contradiction again (see the right half of Figure 7).
Lemma 26.
Let , for . There exists a support graph of that is a star graph with as the center.
Proof.
Lemma 25 implies that is a kernel rectangle of . Observation 17 implies that the support graph of is a star graph with as the center. Same arguments hold for .
We refer and to be terminal rectangles.
If and have a common left blocker, then we call to be left-aligned. Likewise, if and have a common right blocker, then we call to be right-aligned. Conversely, if and have a common top blocker, then we call to be top-aligned. Finally, if and have a common bottom blocker, then we call to be bottom-aligned. Note that a terminal rectangle may or may not be aligned.
3.2 Intersection between Corner and Non-corner Rectangles
From Lemma 19 we know that any vertical or horizontal rectangle having an intersection with at , should be top-aligned and/or right-aligned to , where .
Lemma 27.
There are at most vertical rectangles in and horizontal rectangles in intersecting a corner rectangle at . Among these up to rectangles, there are at most vertical terminal rectangle, and at most horizontal terminal rectangle. Furthermore, for a fixed corner of , if there are two corner rectangles, then there are at most vertical and horizontal rectangle per corner rectangle.
Proof.
Without loss of generality, fix the top-right corner of . If there are corner rectangles, then either there is a single corner rectangle or there are two of them.
For the first case, the corner rectangle is and there are possibly rectangles and , where and such that they intersect at . Recall that and are terminal rectangles (see Figure 8(a)).
Similar is the case, if there are two corner rectangles, and . has an intersection with and at a boundary point , whereas, has an intersection with and at another boundary point (see Figure 8(b)).
See Figure 9 for an illustration of all corners having two corner rectangles each, and also Figure 10 for the corresponding support graph.
We make the following observation.
Lemma 28.
If there are two corner rectangles for a fixed corner of , where , then there exists a support graph such that degree of both these corner rectangles in this graph is at most .
Proof.
Fix and consider . From Lemma 27, and Figures 8(b) and 9, we know there exists at most one maximally horizontal rectangle , and similarly at most one maximally vertical rectangle , such that there is a unique point . Recall, from Lemma 26, there exists a support graph such that non-maximally horizontal (resp. vertical) rectangles are adjacent to a unique maximally horizontal (resp. vertical) rectangle. Thus, in a minimal support graph, has degree at most two. Similar arguments hold for , and also for other values of .
Remark 29.
For a given corner , we shall ignore all pairs of corner rectangles and , if they exist, from our following graph drawing algorithm. Suppose is a degree- vertex, incident to edges and . Instead of drawing the pair of edges, one can draw an edge and place anywhere in the interior of the drawing of this edge. On the other hand, if is a degree- vertex and is the only edge incident to it, then this edge can be drawn arbitrarily close to without intersecting any other edges.
3.3 Algorithm to Draw Planar Support for
This section is an extension of Section 3. In the following we give a simple algorithm to draw a planar support of . We put an edge between the left-aligned (resp. right-aligned) rectangle, if it exists, and every horizontal rectangle. Similarly, we put an edge between the top-aligned (resp. bottom-aligned) rectangle, if it exists, and every vertical rectangle. Without loss of generality, assume that all the aligned rectangles exist.
3.3.1 Placing the Vertices
Draw a circle and place the terminal vertices on it in this order i.e., alternating between the horizontal and vertical rectangles as shown in Figure 11(a) where the circle is drawn in bold. Place the vertices corresponding to the corner rectangle between the terminal rectangles, i.e., between and , between and , between and , and between and .
Define a line joining and in the inner face of the cycle. Place the vertices corresponding to the other horizontal rectangles , on this line obeying the linear order defined in Definition 23. Similarly, define a line joining and in the outer face of the cycle. Place the vertices corresponding to the other vertical rectangles , on this line obeying the linear order defined in Definition 24.
For every , if there exists such that , then define a private region in the plane (shown by a triangle with a vertex at in Figure 11(a)). Place the vertices corresponding to all such rectangles in the ’s private region. Similarly define private regions for , if required, and place all vertices corresponding to rectangles in the region, where .
3.3.2 Drawing the Edges
-
1.
. If is left-aligned with then draw an edge , for every as shown in Figure 11(a). Similarly, if is right-aligned then draw an edge , for every . Conversely, if is bottom-aligned then draw an edge , for every . Likewise, if is top-aligned then draw an edge , for every .
-
2.
. If then draw an edge for every where , along the line where the ’s are placed, as shown in Figure 11(a). Draw an edge inside ’s private region, for every and .
-
3.
. If then draw an edge for every where , along the line where the ’s are placed, as shown in Figure 11(a). Draw an edge inside ’s private region, for every and .
-
4.
. Lemma 19 implies that if where then is either top-aligned and/or right-aligned to . If is top-aligned to and then . Draw the edge . If there exists such that and is top-aligned with then draw the edge if , otherwise do not draw the edge . See Figure 11(b). The case where is top-aligned is identical and we accordingly draw the edges. Finally, we iterate over the other corner rectangles in and do a similar case analysis.
Lemma 30.
Given a family such that , then has a planar support.
Proof.
It is easy to see with the help of Figures 11(a) and 11(b) that the resultant graph is planar. We claim that is also a support graph. For consider . Consider . We claim and are connected in .
-
1.
If then let such that (i.e., or ) and . From Lemma 26, and are edges in . This also means and must be consecutive in the ordering and hence they are adjacent in . Thus, and are connected in . Same is the case for .
-
2.
If and . Let and such that and . Then observe that either is a left/right aligned terminal rectangle or is a top/bottom aligned terminal rectangle, or both. In either cases, is an edge in . Hence, and are connected in .
-
3.
If . Without loss of generality, let and let and . From Lemma 19 there are two cases, either is top-aligned with or right-aligned with . In either cases, there is an edge drawn between and . For the former case, see Figure 11(b). For the latter case, see Figure 11(a). Thus, and are connected. The other cases involving and are identical.
4 Hereditary Property of Planar Boundary Supports
In this section, we prove Lemma 31, i.e., the property of the boundary supports being planar is hereditary, which in turn is used to prove Theorem 4. To that end, we need Lemmata 15, 18, and 30.
Lemma 31 (Hereditary Property).
Given a simple orthogonal polygon and a set of maximal rectangles with respect to . If has a planar support then for every , also has a planar support.
Proof.
We are given a planar support graph for . We claim that for every , there exists a planar support graph for . If this claim is true, then for every , also has a planar support.
Fix some and let be the vertex in corresponding to . In short, we denote . Recall the definition of left-right coloring (Subsection 2.3). Consider a DFS tree defined on rooted at . Let be a child of in , for every . We denote to be the subtree rooted at in . Let be a cotree edge such that it points from to , where .
From Lemma 15, we know that if is planar, then there exists a left-right coloring of the cotree edges. We do the following shortcutting operation on the cotree edges . We replace the edge by such that the color class of the cotree edge, in the aforesaid left-right coloring, is same as before after doing the shortcutting. See Figure 12. From Lemma 15, it follows that planarity is preserved. Let be the set of edges that we get after the shortcutting operation.
For every , if lies in some subtree , for some , then is supported by this shortcutting. If the vertices corresponding to the rectangles in are distributed across the subtrees rooted at multiple children of then observe the following.
Observation 32.
If there exist vertices such that and , for and , then .
This is true because otherwise point is not supported by . Therefore, we can ignore the descendants of , for every and only put edges among the ’s in order to support .
Now we can use our results from Section 3. Observe that is a star centered at . From Lemma 18, belongs to the kernel of , where . Furthermore, from Lemma 30, has a planar support. Let be the edge set of this support (drawn in red in Figure 12).
Thus, is a support of . is also planar because an edge in and that in can be drawn without crossing each other. As for every distinct , edges in can be drawn in their private regions which are disjoint to that of . Finally, the edges in can be drawn outside the union of these private regions.
5 Complete Family of Maximal Rectangles
In this section, we state Lemma 33 and give a proof sketch. This lemma is used to prove Theorem 4. Refer to [45] for the full proof of the lemma. Recall that for a simple orthogonal polygon , is the set of all maximal rectangles with respect to .
Lemma 33.
has a planar support.
Proof Sketch.
Given an orthogonal polygon , we show that if the statement is true for a subpolygon , where is a rectangle, then it also true for . Thus, inductively one can argue that if is a planar support for then there exists a planar support for . In particular, given as an input, we give an algorithm to draw . We make a number of observations between the interplay of the rectangle families in and , and their corresponding support graphs. We observe that the new rectangles that are part of but not in have a unique rectangle in that share common blockers in one or two sides; let’s call them the old rectangles in . Owing to which, we need to put an edge between every such new-old pair in . We further observe that in any support graph for ( resp.) these new (old resp.) rectangles induce a path in ( resp.). Lastly, we need to remove a set of vertices for which an old vertex acts as a cut vertex in and make them adjacent to their new counterpart. We carefully argue that these sequence of operations ensure that the resultant graph is a planar support for .
6 Planar Support Graphs and its Implications
Finally we present our main result.
Theorem 4 (Planar Support for Boundary Cover). [Restated, see original statement.]
Given a simple orthogonal polygon and a set of containment-maximal rectangles with respect to , there exists a planar support graph for .
Proof.
From Lemma 33 it follows that has a planar support. By applying Lemma 31 we prove that has a planar support, as .
Theorem 1. [Restated, see original statement.]
Local Search yields a PTAS for the Boundary Cover problem for simple orthogonal polygons.
Theorem 2. [Restated, see original statement.]
Local Search yields a PTAS for the Corner Cover problem for simple orthogonal polygons.
Theorem 3. [Restated, see original statement.]
Local Search yields a PTAS for the Maximum Independent Set problem on the geometric hypergraph .
Proof.
From Lemma 11, we know that if the intersection graph of the union of the optimum and the Local Search solution is planar, then Theorem 3 follows.
As both optimum and Local Search solutions are independent sets, every point in is contained in at most rectangles. Thus, the support graph of their union is the intersection graph. Therefore, from Theorem 4 the planarity of the intersection graph of their union follows. Hence proved.
7 Negative Results
We have the following negative results.
Theorem 5. [Restated, see original statement.]
For every , there exists simple orthogonal polygon and an interior cover such that every arbitrary support graph of contains .
Proof.
See Figure 13(a). For , one can construct a simple polygon and define a set of maximal rectangles as shown in Figure 13(a) such that the minimal interior support graph is .
.
The minimal support graph of is .
Recall the visibility graph that we defined in Section 1.2.
Lemma 34.
For every , there exists a simple polygon and a finite point set such that is a union of two antirectangles and the visibility graph defined on is .
Proof.
See Figure 13(b). Observe that the set of convex corners in the top-right (resp. bottom-left) quadrant forms an antirectangle. Also, observe that for every pair of corner, one from the top-right quadrant and the other from the bottom-left quadrant, there exist a rectangle containing them and in .
Lemma 34 implies the following.
Theorem 6. [Restated, see original statement.]
There exist simple polygons for which the local optimum solution size can be arbitrarily smaller than that of the global optimum solution for the Maximum Antirectangle problem.
Proof.
Consider Figure 13(b). Assume and . The global optimum solution size is , one such solution is picking all the convex corners of the polygon in the top-right quadrant. If the initial feasible solution for the Local Search algorithm is the set of corners in the bottom-left quadrant, then it can never improve its solution and that would be the local optimum solution.
Theorem 7. [Restated, see original statement.]
There exist simple polygons for which the local optimum solution size can be arbitrarily larger than that of the global optimum solution for the Minimum Hitting Set problem for .
Proof.
See Figure 13(b). Observe that the set of convex corners in the top-right (resp. bottom-left) quadrant forms a hitting set set. As in proof of Theorem 6, assume and . The global optimum solution size is , one such solution is picking all the convex corners of the polygon in the bottom-left quadrant. If the initial feasible solution for the Local Search algorithm is the set of corners in the top-right quadrant, then it can never improve its solution and that would be the local optimum solution.
References
- [1] Mikkel Abrahamsen. Covering polygons is even harder. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 375–386. IEEE, IEEE, 2021. doi:10.1109/FOCS52979.2021.00045.
- [2] Anna Adamaszek and Andreas Wiese. Approximation schemes for maximum weight independent set of rectangles. In 2013 IEEE 54th Annual Symposium on Foundations of Computer Science, pages 400–409. IEEE, 2013. doi:10.1109/FOCS.2013.50.
- [3] Pankaj K. Agarwal, Marc van Kreveld, and Subhash Suri. Label placement by maximum independent set in rectangles. Computational Geometry, 11(3):209–218, 1998. doi:10.1016/S0925-7721(98)00028-5.
- [4] David A Applegate, Gruia Calinescu, David S Johnson, Howard Karloff, Katrina Ligett, and Jia Wang. Compressing rectilinear pictures and minimizing access control lists. In Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1066–1075, 2007. URL: http://dl.acm.org/citation.cfm?id=1283383.1283498.
- [5] Boris Aronov, Esther Ezra, and Micha Sharir. Small-size -nets for axis-parallel rectangles and boxes. SIAM J. Comput., 39(7):3248–3282, 2010. doi:10.1137/090762968.
- [6] Vijay Arya, Naveen Garg, Rohit Khandekar, Adam Meyerson, Kamesh Munagala, and Vinayaka Pandit. Local search heuristic for k-median and facility location problems. In STOC, pages 21–29, 2001. doi:10.1145/380752.380755.
- [7] Rom Aschner, Matthew J Katz, Gila Morgenstern, and Yelena Yuditsky. Approximation schemes for covering and packing. In International Workshop on Algorithms and Computation, pages 89–100. Springer, 2013. doi:10.1007/978-3-642-36065-7_10.
- [8] Pradeesha Ashok, Aniket Basu Roy, and Sathish Govindarajan. Local search strikes again: Ptas for variants of geometric covering and packing. Journal of Combinatorial Optimization, 39(2):618–635, 2020. doi:10.1007/s10878-019-00432-y.
- [9] Stav Ashur, Omrit Filtser, Matthew J Katz, and Rachel Saban. Terrain-like graphs: PTASs for guarding weakly-visible polygons and terrains. Computational Geometry, 101:101832, 2022. doi:10.1016/j.comgeo.2021.101832.
- [10] Aniket Basu Roy, Sathish Govindarajan, Rajiv Raman, and Saurabh Ray. Packing and covering with non-piercing regions. Discrete & Computational Geometry, 60:471–492, 2018. doi:10.1007/s00454-018-9983-2.
- [11] Piotr Berman and Bhaskar DasGupta. Complexities of efficient solutions of rectilinear polygon cover problems. Algorithmica, 17:331–356, 1997. doi:10.1007/BF02523677.
- [12] Hervé Brönnimann and Michael T. Goodrich. Almost optimal set covers in finite VC-dimension. Discrete & Computational Geometry, 14(1):463–479, 1995. doi:10.1007/BF02570718.
- [13] Reilly Browne, Prahlad Narasimhan Kasthurirangan, Joseph S. B. Mitchell, and Valentin Polishchuk. Constant-factor approximation algorithms for convex cover and hidden set in a simple polygon. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 1357–1365. IEEE, IEEE, 2023. doi:10.1109/FOCS57990.2023.00083.
- [14] Kevin Buchin, Marc J van Kreveld, Henk Meijer, Bettina Speckmann, and KAB Verbeek. On planar supports for hypergraphs. Journal of Graph Algorithms and Applications, 15(4):533–549, 2011. doi:10.7155/jgaa.00237.
- [15] Seth Chaiken, Daniel J Kleitman, Michael Saks, and James Shearer. Covering regions by rectangles. SIAM Journal on Algebraic Discrete Methods, 2(4):394–410, 1981.
- [16] Parinya Chalermsook and Julia Chuzhoy. Maximum independent set of rectangles. In Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 892–901. SIAM, 2009. doi:10.1137/1.9781611973068.97.
- [17] Timothy M Chan. Conflict-free coloring of points with respect to rectangles and approximation algorithms for discrete independent set. In Proceedings of the Twenty-Eighth Annual Symposium on Computational Geometry, pages 293–302, 2012. doi:10.1145/2261250.2261293.
- [18] Timothy M Chan and Elyot Grant. Exact algorithms and APX-hardness results for geometric packing and covering problems. Computational Geometry, 47(2):112–124, 2014. doi:10.1016/j.comgeo.2012.04.001.
- [19] Timothy M Chan, Elyot Grant, Jochen Könemann, and Malcolm Sharpe. Weighted capacitated, priority, and geometric set cover via improved quasi-uniform sampling. In Proceedings of the twenty-third annual ACM-SIAM symposium on Discrete Algorithms, pages 1576–1585. SIAM, 2012. doi:10.1137/1.9781611973099.125.
- [20] Timothy M. Chan and Sariel Har-Peled. Approximation algorithms for maximum independent set of pseudo-disks. Discrete & Computational Geometry, 48(2):373–392, 2012. doi:10.1007/s00454-012-9417-5.
- [21] Kenneth L Clarkson and Kasturi Varadarajan. Improved approximation algorithms for geometric set cover. Discrete & Computational Geometry, 37(1):43–58, 2007. doi:10.1007/s00454-006-1273-8.
- [22] H Conn and J O’Rourke. Some restricted rectangle covering problems. In Proceedings of the 1987 Allerton Conference, 1987.
- [23] Joseph C Culberson and Robert A Reckhow. Covering polygons is hard. J. Algorithms, 17(1):2–44, 1994. doi:10.1006/jagm.1994.1025.
- [24] Hubert De Fraysseix, Patrice Ossona De Mendez, and Pierre Rosenstiehl. Trémaux trees and planarity. International Journal of Foundations of Computer Science, 17(05):1017–1029, 2006. doi:10.1142/S0129054106004248.
- [25] Stephane Durocher and Robert Fraser. Duality for geometric set cover and geometric hitting set problems on pseudodisks. In Proceedings of the 27th Canadian Conference on Computational Geometry, CCCG 2015, Kingston, Ontario, Canada, August 10-12, 2015. Queen’s University, Ontario, Canada, 2015. URL: http://research.cs.queensu.ca/cccg2015/CCCG15-papers/10.pdf.
- [26] Alina Ene, Sariel Har-Peled, and Benjamin Raichel. Geometric packing under nonuniform constraints. SIAM Journal on Computing, 46(6):1745–1784, 2017. doi:10.1137/120898413.
- [27] Deborah S. Franzblau. Performance guarantees on a sweep-line heuristic for covering rectilinear polygons with rectangles. SIAM Journal on Discrete Mathematics, 2(3):307–321, 1989. doi:10.1137/0402027.
- [28] M. R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. A Series of Books in the Mathematical Sciences. W. H. Freeman, 1979. A guide to the theory of NP-completeness.
- [29] Anupam Gupta and Kanat Tangwongsan. Simpler analyses of local search algorithms for facility location. CoRR, abs/0809.2554, 2008. doi:10.48550/arXiv.0809.2554.
- [30] Waldo Gálvez, Arindam Khan, Mathieu Mari, Tobias Mömke, Madhusudhan Reddy, and Andreas Wiese. A (2+)-approximation algorithm for maximum independent set of rectangles, 2021. doi:10.48550/arXiv.2106.00623.
- [31] Kathrin Hanauer, Martin P Seybold, and Julian Unterweger. Covering rectilinear polygons with area-weighted rectangles. In 2024 Proceedings of the Symposium on Algorithm Engineering and Experiments (ALENEX), pages 157–169. SIAM, 2024. doi:10.1137/1.9781611977929.12.
- [32] Sariel Har-Peled and Kent Quanrud. Approximation algorithms for polynomial-expansion and low-density graphs. In Algorithms – ESA 2015 - 23rd Annual European Symposium, Patras, Greece, September 14–16, 2015, Proceedings, pages 717–728, 2015. doi:10.1007/978-3-662-48350-3_60.
- [33] D Haussler and Emo Welzl. -nets and simplex range queries. Discret. Comput. Geom., 2:127–151, 1987. doi:10.1007/BF02187876.
- [34] Laura Heinrich-Litan and Marco E. Lübbecke. Rectangle covers revisited computationally. ACM J. Exp. Algorithmics, 11:2.6–es, February 2007. doi:10.1145/1187436.1216583.
- [35] David S Johnson and Henry O Pollak. Hypergraph planarity and the complexity of drawing venn diagrams. Journal of Graph Theory, 11(3):309–325, 1987. doi:10.1002/jgt.3190110306.
- [36] Michael Kaufmann, Marc van Kreveld, and Bettina Speckmann. Subdivision drawings of hypergraphs. In International Symposium on Graph Drawing, pages 396–407. Springer, 2008. doi:10.1007/978-3-642-00219-9_39.
- [37] Ivo Koch and Javier Marenco. A hybrid heuristic for the rectilinear picture compression problem. 4OR, 21(2):329–358, 2023. doi:10.1007/s10288-022-00515-3.
- [38] Erik Krohn, Matt Gibson, Gaurav Kanade, and Kasturi Varadarajan. Guarding terrains via local search. Journal of Computational Geometry, 5(1):168–178, 2014. doi:10.20382/jocg.v5i1a9.
- [39] VS Anil Kumar and H Ramesh. Covering rectilinear polygons with axis-parallel rectangles. SIAM Journal on Computing, 32(6):1509–1541, 2003. doi:10.1137/S0097539799358835.
- [40] Joseph S. B. Mitchell. Approximating maximum independent set for rectangles in the plane. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 339–350. IEEE, 2021. doi:10.1109/FOCS52979.2021.00042.
- [41] Nabil H. Mustafa and Saurabh Ray. Improved results on geometric hitting set problems. Discrete & Computational Geometry, 44(4):883–895, 2010. doi:10.1007/s00454-010-9285-9.
- [42] János Pach and Gábor Tardos. Tight lower bounds for the size of epsilon-nets. In Proceedings of the twenty-Seventh Annual Symposium on Computational Geometry, pages 458–463, 2011. doi:10.1145/1998196.1998271.
- [43] Rajiv Raman and Saurabh Ray. Constructing planar support for non-piercing regions. Discrete & Computational Geometry, 64(3):1098–1122, 2020. doi:10.1007/s00454-020-00216-w.
- [44] Rajiv Raman and Karamjeet Singh. On hypergraph supports. CoRR, abs/2303.16515, 2023. doi:10.48550/arXiv.2303.16515.
- [45] Aniket Basu Roy. Covering simple orthogonal polygons with rectangles. CoRR, abs/2406.16209, 2024. doi:10.48550/arXiv.2406.16209.
- [46] Manuel Combarro Simón, Pierre Talbot, Grégoire Danoy, Jedrzej Musial, Mohammed Alswaitti, and Pascal Bouvry. Constraint model for the satellite image mosaic selection problem (short paper). In Roland H. C. Yap, editor, 29th International Conference on Principles and Practice of Constraint Programming, CP 2023, August 27-31, 2023, Toronto, Canada, volume 280 of LIPIcs, pages 44:1–44:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.CP.2023.44.
- [47] Kasturi Varadarajan. Weighted geometric set cover via quasi-uniform sampling. In Proceedings of the Forty-Second ACM Symposium on Theory of Computing, pages 641–648, 2010. doi:10.1145/1806689.1806777.
