An Improved Guillotine Cut for Squares
Abstract
Given a set of non-overlapping geometric objects, can we separate a constant fraction of them using straight-line cuts that extend from edge to edge? In 1996, Urrutia posed this question for compact convex objects. Pach and Tardos later refuted it for general line segments by constructing a family where any separable subfamily has size at most . However, for axis-parallel rectangles, they provided positive evidence, showing that an -fraction can be separated.
This problem naturally arises in geometric approximation algorithms. In particular, when restricting cuts to only orthogonal straight lines, known as a guillotine cut sequence, any bound on the separability ratio directly translates into a clean and simple dynamic programming for computing a maximum independent set of geometric objects.
This paper focuses on the case when the objects are squares. For squares of arbitrary sizes, an -fraction can be separated (Abed et al., APPROX 2015), recently improved to (and for the weighted case) (Khan and Pittu, APPROX 2020). We further improve this bound, showing that a can be separated for the weighted case. This result significantly narrows the possible range for squares to . The key to our improvement is a refined analysis of the existing framework.
Keywords and phrases:
Guillotine cuts, Geometric Approximation Algorithms, Rectangles, SquaresCopyright and License:
2012 ACM Subject Classification:
Theory of computation Approximation algorithms analysis ; Theory of computation Computational geometryAcknowledgements:
In memory of our friend, Sumedha Uniyal.Funding:
This work was supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 759557).Editors:
Pat Morin and Eunjin OhSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In this paper, we investigate the following combinatorial question, posed initially by Urrutia in 1996 [17]: Given a collection of disjoint compact convex objects, what is the largest subset that a sequence of straight-line cuts can separate? This combinatorial geometric question naturally arises in two distinct scenarios:
-
Cutting Stock Problems: The cutting stock problem involves cutting a standard-sized large piece of material – such as a roll of paper, a sheet of glass, or a wooden plank – into smaller specified pieces while minimizing waste [5]. This class of problems has inspired numerous challenges in operations research, combinatorics, and approximation algorithms (see, e.g., [9, 13, 15]).
-
Simple Algorithms for Geometric Packing: In geometric packing, we seek to compute the maximum independent set in the intersection graph of geometric objects, i.e., given a collection of convex polygons, find the largest subset of non-overlapping polygons. These problems have been extensively studied, with a focus on approximation algorithms (due to their NP-hardness even for the simplest objects like disks or squares) [8, 2, 4, 3, 6, 10, 14, 7].
While Urrutia’s question was refuted by Pach and Tardos [16] – who constructed a family of line segments where any separable subset has size at most – there remains hope for axis-parallel rectangles:
Both [16] and [1] (and a recent follow-up [12]) rely only on a sequence of orthogonal straight-line cuts (known as guillotine cuts) to separate the rectangles. Guillotine cuts are particularly appealing from an approximation algorithms perspective, as they lead to clean and simple combinatorial techniques. Specifically, any non-constructive result that guarantees a guillotine separable fraction of objects immediately implies a simple DP-based -approximation algorithm for geometric packing of the respective object families.
This connection, in fact, holds in a more general setting when the geometric objects have weights, i.e., we are looking for a separable set that retains fraction of total weights. For squares, the current best known factor is (and for the weighted setting) [12], while obtaining a factor better than is not possible [1].
1.1 Our Contributions
Our main contribution is summarized in the following theorem.
Theorem 1.
For all families of non-overlapping weighted squares, there exists a separable subset that retains at least of the total weight.
So our result improves upon the previous result by a factor of in the weighted setting.
Broader connections to the DP framework.
Our results relate to a dynamic programming framework for geometric packing, initiated by Adamaszek and Wiese [3, 2]. Their framework is parametrized by , where a geometric object family is called -good if it contains a subset of at least an -fraction of objects that can be separated using polygonal cuts that always create pieces with at most edges. If a family is -good, the framework yields a -approximation algorithm with running time . In Adamaszek, Har-Peled, and Wiese’s elegant result [2], they show that every family of polygons in 2D is -good, implying a quasi-polynomial time approximation scheme (QPTAS) for the independent set of polygons.
Since the existence of a -fraction guillotine separable subset implies that the family is -good, our results directly contribute to a better understanding of this framework for squares. The recent breakthrough by Mitchell [14] show that rectangles are -good, and further refinements [11] prove that they are -good, leading to the best known -approximation algorithm for the maximum independent set of rectangles.
1.2 Overview of Techniques
This paper builds on the techniques from [1]. There, the guillotine cut sequence is created in two phases. In the first phase, which we call the grid drawing phase, the procedure draws hierarchical grid lines so that each square is assigned its own cell roughly the size of its own. Those squares that do not fit this criterion would be removed from the first phase. We call the squares that remain after this phase the surviving squares. Denote by the surviving ratio of the first phase. In the second phase, called conflict removal phase, we define a conflict graph where the vertices correspond to the surviving squares and the edges connect the squares that are “difficult” to save simultaneously. The graph is defined so that every independent set in this graph corresponds to squares that can be guillotine-separated. Therefore, the crux of this approach is to ensure that the conflict graph is sufficiently sparse, so that the graph is -colorable for some small value of . This will imply a guillotine-separable set of size .
Using this terminology, the best known factor of [12] ensures that the conflict graph is -colorable and loses the factor of in the grid drawing phase [12]; the earlier work by Abed et al. [1] also aims for a simple conflict removal phase, and therefore losing a relatively large factor in the grid drawing phase. Our improvements are obtained by looking at this differently. We ensure that the first phase has a good surviving rate (i.e., our ), thus naturally complicating the second phase. Our conflict graph is more sophisticated and is no longer -colorable. We, nevertheless, show that the graph is -colorable, which implies the factor of as claimed.
The paper is written so that the ideas are introduced one by one. We first present the proof where and (so the factor is ) and improve to and respectively (while keeping ). Finally, we present the main result with and .
2 Preliminaries
Assume we are given a set of non-overlapping axis-parallel squares of arbitrary sizes. We aim to separate as many of them as possible with a sequence of axis-parallel cuts, defined as follows.
Guillotine cuts are a series of horizontal and vertical cuts separating objects on a plane, such that each cut is performed on a previously separated part. For example, if the first vertical cut separates the plane into two, the next two horizontal cuts can separate the two pieces independently.
Given a collection of non-overlapping squares , on a plane, the problem is to find the largest set separable by Guillotine cuts.
2.1 Grid construction
In this section, we give the random hierarchical grid construction used in all the separation algorithms. Let be the maximum width/height of a square in . Instead of width/height, we will say the size of a square.
We define a hierarchical grid structure similar to Abed et al. [1], which will act as a scaffolding for our instance . In our cutting strategy, we will perform cuts only along these lines.
We choose two integers uniformly at random, corresponding to the random horizontal and vertical shift, respectively. The positive integer will be a “scaling factor”.
We say that a grid line is level- if it is drawn by Algorithm 1 in iteration . Note that all level- grid lines are also level- grid lines, etc.
Definition 2 (Cell levels).
Any two consecutive horizontal and vertical grid lines on level- form a unique square, called a level- cell.
Definition 3 (Square levels).
We say that is a level- square, if its size is within .
Fact 4.
A level- cell is at least times (and strictly less than times) larger than a level- square.
Proposition 5.
Grid cells satisfy the following properties:
-
A level- cell has a size of .
-
Two cells of the same level do not intersect.
-
For two cells that intersect, one must contain the other.
We say that is a subcell of if contains , and (they are not the same cell). We use to refer to the size of cell and similarly for squares.
2.2 Surviving set
Definition 6 (Original cells).
Let be any square and be the level of . If does not intersect a grid line of level , we define the original cell of to be the level- cell that contains . We denote it as .
Note that is not defined for every square . The set of squares for which original cells are defined is called the surviving set .
Theorem 7 (Claim 2.1, [1]).
The horizontal and vertical shifts can be chosen such that the surviving set is of size at least .
The proof can be found in Appendix A.
3 Algorithmic Results
3.1 Overview
We will introduce multiple strategies for separating a set of squares by performing guillotine cuts. All of these strategies will follow the basic structure outlined here.
This strategy leads to a set of size at least . The specific ratio depends on and, most importantly, on how we define a conflict, which will gradually be improved in each section, resulting in increasingly larger sets.
3.2 A direct cutting strategy to get -separation
In this subsection, we fix , define the conflict graph on , and show that it is -colorable. Thus, the cutting sequence separating any independent set of will imply a -separation.
We say that two squares conflict if the original cells of and are the same, i.e., , or we have the case that contains and intersects . Note that and do not conflict if and are of the same level but not the same cells. Figure 1 shows examples of conflicting and non-conflicting squares.
Now, we define the conflict graph , so that the vertices are the squares in and two vertices are adjacent if they conflict.
For any cell , we denote by the set of all squares , such that . Note that some higher- or lower-level squares might be drawn inside but not contained in .
Lemma 8.
The conflict graph is -colorable.
Proof.
We prove it by induction on the size of . If is empty, it is obviously -colorable. Otherwise, we take the smallest non-empty cell such that , i.e. there exists a square such that , and for any cell contained in , we have . Let be the level of cell .
According to the induction hypothesis, is -colorable, so let us assume it is already colored. We show that we can color all the squares in to get a coloring for . These squares all have to have a level at most ; otherwise, their original cell would have been smaller, and we wouldn’t have chosen . According to Fact 4, the size of level- squares is strictly bigger than of the size of , and therefore at most squares of level fit into a cell of level horizontally as well as vertically. Since squares of smaller levels are larger, it follows that at most squares can be inside (Figure 2). If contains squares of smaller levels, they will already be colored by the induction hypothesis, and these colors will not be changed. We can color all the squares in with at most nine different colors (see Figure 2), avoiding the already used colors inside .
Now, we bound the number of squares that conflict with any square in but are not contained in . Since is the smallest non-empty cell, any square must cross the boundary of . Since is a level- cell, then is a level- cell for . We bound the number of squares that can conflict with any square in based on the way they intersect (see Figure 3(a)): First, there can be at most four squares containing one of the corners of . Next, let be a square intersecting the side of without containing any corner. Using Fact 4, we know that the size of is strictly bigger than half of the size of . Thus, there can be at most one square in this position for each side of , which adds up to four squares. We can further reduce this number because two sides of any level- cell are also level- grid lines. Then, there cannot be any intersecting square on those sides, implying that at most two squares intersecting only sides of (see Figure 3(b)).
We showed that at most six squares can conflict with squares in by intersecting the boundary of and at most colors can be required to color the squares inside , leading to a valid coloring for .
Lemma 9.
Any independent set of is guillotine separable.
Proof.
Let be an independent set of . First, we can separate the two squares with the “biggest” original cells without cutting through any other squares. Let be the squares such that and for any other square , . Note that since and cannot conflict, then .
Since the grid lines defining cannot go through any cell smaller than itself, we can safely cut along these grid lines and do not touch any other squares in except for . Now, we claim that one of the four grid lines defining separates and (see Figure 4). Since cannot intersect , it must be entirely on the left, right, top, or bottom of . The grid line of the corresponding side then separates from without cutting any square in . We can separate all the squares by recursively and independently applying this process to the two resulting sub-instances.
3.3 Fitting Cells to get -separation
In this section, we improve coloring by using the additional concept of fitting cells. The grid’s scaling factor remains .
Note that the grid structure defined in Section 2 forms a laminar family of cells. Let the set of these cells be . For any laminar family of cells, we define the notion of fitting cells as follows.
Definition 10 (Fitting cells).
Given a laminar family of cells and a surviving set , the fitting cell of any square is the smallest cell in containing .
The fitting and original cells of square can differ when the former is too small to qualify as an original cell because of the scaling factor (Figure 5).
Fact 11.
For a level- square , the fitting cell is always of level , for .
Proof.
The bound is a direct result of the scaling factor: for a cell of level , (Fact 4), therefore for a cell of level , we would have and for a level- cell , . This implies that cannot be a fitting cell of , bounding at most . The first part of the inequality, , is easy to see since every original cell must contain , so the smallest cell that contains cannot be larger than .
Conflict graph .
We define the new conflict graph based on the definition of conflicts below.
Definition 12 (Conflicts).
Let and be distinct squares in . We say that and conflict if one of the following conditions is true: (i) , or (ii) and intersects .
Figure 6 shows examples of conflicting and non-conflicting squares.
Analogously to for original cells, we define for fitting cells.
Definition 13.
Let be a cell of . We use to denote the set of all squares , such that .
Lemma 14.
The conflict graph is -colorable.
The proof can be found in Appendix A.
Lemma 15.
Any independent set of is guillotine-separable.
The proof can be seen by replacing the concept of original cells in Lemma 9 with fitting cells.
4 Further Improvements for cutting Squares
4.1 Twin squares to reach -separation
In this subsection, we introduce the notion of twin squares. The idea is to identify pairs of squares (belonging to the same fitting cell) that can be separated using the next level’s vertical or horizontal grid line. We will get a sparser conflict graph on by removing conflicts between such squares. We show that the new conflict graph is -colorable, and any independent set of this graph is guillotine separable, implying a -separation for . We start with the same set , laminar family , and the fitting cells defined in Section 3.3.
Definition 16 (Twin squares).
For a laminar family , Let and be two squares with the same level- fitting cell, i.e. . We say and are twin squares if they can be separated by the level- horizontal or vertical grid line cutting through (see Figure 7).
Conflict graph .
We define the new conflict graph based on the definition of conflicts below.
Definition 17 (Conflicts).
Let and be two squares in . We say that and conflict (up to renaming) if one of the following conditions is true:
-
, and and are not twin squares.
-
contains , and intersects .
Lemma 18.
The conflict graph is -colorable.
The proof can be found in Appendix A.
Lemma 19.
Any independent set of is guillotine separable.
Proof.
Similarly to Lemma 9, we show a recursive cutting strategy. Starting with an independent set of , we first separate two squares with the “biggest” fitting cell. Let be the squares such that , and for any other square , . If , then and can be separated using the proof of Lemma 9 (see Figure 4). Otherwise, must be twin squares with a common fitting cell (let ), since they do not conflict. Then, we can cut along the grid lines of (see Figure 8). Since for any square , , we can safely perform these cuts without intersecting any square in .
Let be the level of . Since we have isolated with the first cuts, further cuts of can be done independently from the rest of the graph. We use the horizontal (or vertical) level- grid line, which certifies that and are twins (see Definition 16), as a cut to separate from (see Figure 8). Let be any square inside intersecting the cut. Since is contained in then . also cannot have a level- (or smaller) cell as its fitting cell because of intersecting the level- grid line. Therefore . Since twin squares and intersect the vertical level- grid line and their fitting cell is also , then conflicts with them. This implies that and the cut is safe to perform. Similarly to the proof of Lemma 9, we recursively apply this process to separate .
4.2 Half-Cells for a -separation
In this section, we redefine the notion of cells to include rectangular cells.
Definition 20 (Rectangular Cells).
Any two consecutive horizontal and vertical grid lines of level and form a unique rectangle, called a level- cell.
Let square-cells be all level- cells for some (our old notion of cells), and half-cells be all level- cells for some . Note that half-cells of level can be obtained by splitting square-cells of level with the level- vertical line within them.
We will use and to refer to the height and width of a cell , respectively. For any pair of cells , we will say , if and . Note that among square-cells and half-cells, any pair of cells is comparable (either or ), since we are only considering the tall halves. Adding half-cells to the laminar family , the resulting family remains laminar. In this section, let fitting cells be defined over the laminar family (Definition 10), while the scaling factor remains . Examples of the new fitting cells are depicted on Figure 9.
Fact 21.
For a level- square , the fitting cell is
-
A square-cell of level , for , or
-
A half-cell of level
Proof.
The first part follows directly from Fact 11. Let us consider the second part. When we define fitting cells over , the surviving set remains the same; therefore, when the fitting cell is a half-cell, it is always two times narrower than if we defined fitting cells over . Similarly to the proof of Fact 11, a half-cell of level has , therefore a half-cell of level would not be able to contain .
Twin squares.
Similarly to the original definition Definition 16, we define twin squares to be a pair of squares in the same fitting cell (which is a level- square-cell) that are separated by a level- grid line.
If their fitting cell is a half-cell, we do not consider twin squares. Additionally, twin squares cannot be separated by a vertical grid line, otherwise their fitting cells would be separate half-cells.
Conflict graph .
We define the new conflict graph based on the same Definition 17 of conflicts with respect to the new fitting cells of . See Figure 10 for illustration.
Lemma 22.
The conflict graph is -colorable.
Proof.
This proof is easier to show by using a stronger statement. We will show that there exists an -coloring of , such that for each cell , the squares are colored with at most colors.
We will see this proof by induction over the number of squares (). The base case holds trivially. We again pick the smallest non-empty cell for induction. Then and for any cell smaller than (), we have .
We assume that the induction hypothesis holds for and show that we can use colors to color , with at most eight colors in total. We will consider the cases where is a square-cell or a half-cell separately.
Firstly, consider that is a square-cell of level . Equivalently to Lemma 8, it can be seen that there are at most squares that can conflict with any square in . Since these squares use at most colors, at least colors remain to color . We will count the number of squares contains, which, similarly to previous proofs, is the same as due to how was chosen. All squares in must intersect the vertical grid line of level , splitting ; otherwise, those squares would be contained in a subcell of . According to Fact 4, these squares can be at most . These squares can be colored with colors since the squares above and below the horizontal grid line of the level are twin squares and can share a color (Figure 11).
Secondly, we consider that is a level- half-cell. Again, the squares that contains among are exactly due to how was chosen. These squares must intersect the horizontal grid line of level within ; otherwise, they would fit into a subcell of . The squares in must be of level to have survived, and the number of level- squares intersecting the level- grid line in can be at most (Fact 21, Fact 4). Since cannot be empty, it must contain exactly one square. Let be that square.
It remains to bound the number of squares conflicting with . Note that all the conflicting squares must intersect the boundary of (Definition 17). Let be the level- square-cell such that is a subcell of .
At most, squares can intersect with the corners of cell . Next, consider the squares intersecting the level- horizontal grid lines bordering . For these squares to survive, their level must be at most . This implies they are too large to intersect only the level- horizontal grid line without intersecting a corner (Figure 12). Next, let us consider the level- vertical grid lines bordering . Similarly to Lemma 8, Figure 3(b), one of those grid lines must also be of level and therefore cannot have a surviving square intersecting it without also intersecting a corner. This leaves us with one square as depicted on Figure 12. Finally, let us consider the squares intersecting the level- vertical grid line bordering (Figure 12). Since we already counted the squares intersecting the borders of in addition to , these squares must be in . By induction hypothesis, they can be colored with colors. If the colors of the corner squares and are different from these two colors, we have at most colors used for the set of squares that conflict with . By coloring with a different color, we have a valid -coloring with at most colors used for as stated.
Lemma 23.
Any independent set of is guillotine separable.
Proof.
Similarly to Lemma 19, we show a recursive cutting strategy. Starting with an independent set of , we first separate two squares with the “biggest” fitting cell. Let be the squares such that , and for any other square , . If , then and can be separated using the proof of Lemma 9 (see Figure 4). Next, we consider the case that , e.g and share the same fitting cell. Let this fitting cell be and its level be .
First, consider the case that is a half-cell. This implies that and intersect the same horizontal grid line of level . Otherwise, they would fit in smaller subcells. Since there are no twin squares in half-cells, and conflict, which contradicts them being in the same independent set .
Secondly, consider the case that is a square-cell. Similarly to the proof of Lemma 19, the square-cell can be isolated from the rest of the graph by the first cuts as depicted on Figure 8. Again, these cuts will not intersect any squares outside of , because the fitting cells for other squares must be smaller than or equal to the size of (due to our choice of and ). Similarly to Lemma 19, the fifth cut is a level- horizontal grid line if is the level of . Let us now consider the squares inside since the fifth cut will be performed only on . For , we can see similarly to Lemma 19 that they are not cut. For a square whose fitting cell is a half-cell subcell of , there is a conflict between and , because and intersects . This means that cannot exist in the independent set , and the cutting strategy doesn’t cut any squares.
Similarly to the proof of Lemma 9, we recursively apply this process to separate .
5 Using Coarser Grid () for Squares to get -separation
We consider a set containing non-overlapping axis-parallel squares. In Theorem 27, we show that we can separate at least fraction of the squares with guillotine cuts.
For the coarser grid, we set , and get fraction of surviving squares by applying Theorem 7. Then, we introduce a conflict graph , showing that it is -colorable. Finally, we show that any independent set of this graph is Guillotine separable, leading to a -separation.
Similar to Section 4.2, we consider the laminar family containing all the level- cells together with all the level- half-cells for any . For each square , we define the fitting cell over the laminar family (Definition 10).
Since, in this case, , the number of squares associated with a fitting cell increases. In this section, let the surviving set be redefined to be the surviving set of the new grid structure.
Fact 24.
For any square , one of the following must be true:
-
The fitting cell is a level- square-cell for some . Then intersects the level- vertical grid line, cutting in half, and can be a fitting cell for at most seven squares (see Figure 13(a)).
-
The fitting cell is a level- half-cell for some . Then intersects the level- horizontal grid line, cutting in half, and can be a fitting cell for at most three squares (see Figure 13(b)).
Proof.
If the intersection property did not hold for either of the cases above, the square would fit into some smaller cell in , leading to a contradiction.
Since intersects a level- grid line in both cases, must be level- for . Also, must be strictly more than fraction of the height of any level- cell, because of the Fact 4.
In case is of level , any such square must intersect the level- vertical grid line cutting in half. Hence, at most seven squares can fit into .
Otherwise, if is a level- cell, the width of is half the width of any level- cell. Since must intersect the level- horizontal grid line cutting into half, then at most three squares can fit into .
Conflict Graph .
We use the same Definition 17 of conflicting squares to define our conflict graph on . Similar to Section 4.2, there are no twin squares separated by the vertical line cutting through the cell; otherwise, the two squares would have different fitting cells. The following lemma shows the coloring of , similar to the proof of Lemma 22, involving more counting arguments. Since we have instead of , this grid is coarser, leading to more squares inside and intersecting the boundary of any cell in .
Lemma 25.
The graph is -colorable.
The proof can be found in Appendix A.
Lemma 26.
Any independent set of is guillotine separable.
Theorem 27.
For an -size set of non-overlapping axis-parallel squares, there exists a -separation with guillotine cuts.
Proof.
Using Theorem 7, we can place a grid on and define the original cells for a subset containing at least squares, with . Then, Lemma 25 ensures that the conflict graph for the squares is -colorable. Thus, we can extract a subset containing at least squares, which do not conflict with any other square in .
Finally, Lemma 26 provides a cutting strategy for , showing that is guillotine separable.
References
- [1] Fidaa Abed, Parinya Chalermsook, José Correa, Andreas Karrenbauer, Pablo Pérez-Lantero, José A. Soto, and Andreas Wiese. On Guillotine Cutting Sequences. In Naveen Garg, Klaus Jansen, Anup Rao, and José D. P. Rolim, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2015), volume 40 of Leibniz International Proceedings in Informatics (LIPIcs), pages 1–19, Dagstuhl, Germany, 2015. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPICS.APPROX-RANDOM.2015.1.
- [2] Anna Adamaszek, Sariel Har-Peled, and Andreas Wiese. Approximation schemes for independent set and sparse subsets of polygons. Journal of the ACM (JACM), 66(4):29, 2019.
- [3] Anna Adamaszek and Andreas Wiese. Approximation schemes for maximum weight independent set of rectangles. In Proceedings of the 2013 IEEE 54th Annual Symposium on Foundations of Computer Science, FOCS ’13, pages 400–409. IEEE Computer Society, 2013. doi:10.1109/FOCS.2013.50.
- [4] Anna Adamaszek and Andreas Wiese. A QPTAS for Maximum Weight Independent Set of Polygons with Polylogarithmically Many Vertices, pages 645–656. Society for Industrial and Applied Mathematics, 2014. doi:10.1137/1.9781611973402.49.
- [5] Mir-Bahador Aryanezhad, Nima Fakhim Hashemi, Ahmad Makui, and Hasan Javanshir. A simple approach to the two-dimensional guillotine cutting stock problem. Journal of Industrial Engineering International, 8(1):21, September 2012.
- [6] 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. Society for Industrial and Applied Mathematics, 2009. doi:10.1137/1.9781611973068.97.
- [7] Parinya Chalermsook and Bartosz Walczak. Coloring and maximum weight independent set of rectangles. In Proceedings of the 2021 ACM-SIAM symposium on discrete algorithms (SODA), pages 860–868. SIAM, 2021. doi:10.1137/1.9781611976465.54.
- [8] 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.
- [9] CH Cheng, BR Feiring, and TCE Cheng. The cutting stock problem – A survey. International Journal of Production Economics, 36(3):291–305, 1994.
- [10] Thomas Erlebach, Klaus Jansen, and Eike Seidel. Polynomial-time approximation schemes for geometric intersection graphs. SIAM Journal on Computing, 34(6):1302–1323, 2005. doi:10.1137/S0097539702402676.
- [11] Waldo Gálvez, Fabrizio Grandoni, Arindam Khan, Diego Ramírez-Romero, and Andreas Wiese. Improved approximation algorithms for 2-dimensional knapsack: Packing into multiple l-shapes, spirals, and more. arXiv preprint arXiv:2103.10406, 2021. arXiv:2103.10406.
- [12] Arindam Khan and Madhusudhan Reddy Pittu. On Guillotine Separability of Squares and Rectangles. In Jaroslaw Byrka and Raghu Meka, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2020), volume 176 of Leibniz International Proceedings in Informatics (LIPIcs), pages 47:1–47:22, Dagstuhl, Germany, 2020. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPICS.APPROX/RANDOM.2020.47.
- [13] Andrea Lodi, Silvano Martello, and Michele Monaci. Two-dimensional packing problems: A survey. European journal of operational research, 141(2):241–252, 2002. doi:10.1016/S0377-2217(02)00123-6.
- [14] Joseph Mitchell. Approximating maximum independent set for rectangles in the plane. SIAM Journal on Computing, 0(0):FOCS21–299–FOCS21–322, 0. doi:10.1137/22M1475521.
- [15] Nthabiseng Ntene and Jan H van Vuuren. A survey and comparison of guillotine heuristics for the 2d oriented offline strip packing problem. Discrete Optimization, 6(2):174–188, 2009. doi:10.1016/J.DISOPT.2008.11.002.
- [16] János Pach and Gábor Tardos. Cutting glass. In Proceedings of the Sixteenth Annual Symposium on Computational Geometry, SoCG ’00, pages 360–369. ACM, 2000. doi:10.1145/336154.336223.
- [17] Jorge Urrutia. Problem presented at ACCOTA’96: Combinatorial and computational aspects of optimization. Topology, and Algebra, Taxco, Mexico, 1996.
Appendix A Deferred proofs
Theorem 7 (Claim 2.1, [1]). [Restated, see original statement.]
The horizontal and vertical shifts can be chosen such that the surviving set is of size at least .
Proof.
We will show that this result can be reached in expectation by sampling independently and uniformly at random.
Let be any square of level . Let and be the probabilities that a level- horizontal or vertical grid line is drawn on , respectively. By using Fact 4, we get that . Thus, the probability that is in the surviving set (survives), is . In expectation, rectangles survive. This implies that there must exist and such that at least squares survive.
Lemma 14. [Restated, see original statement.]
The conflict graph is -colorable.
Proof.
Similar to Lemma 8, we will prove this by induction on the number of squares (). The base case is trivial. For the inductive step, consider the smallest cell that contains a square (). This implies that for any cell smaller than , . By induction hypothesis, is -colorable, and we will show that we can color the squares of while maintaining a valid -coloring of .
First, we bound the number of squares contained within . Let be the level of . Since is the smallest cell containing any square, any square within must cross the level- grid lines within , or otherwise would be contained in a smaller level- cell. According to Fact 11 and Fact 4, at most consecutive squares can fit into width- or height-wise. Since all contained squares must intersect the level- grid lines, it is easy to verify that the number of these squares can be at most in total (Figure 14). Note that this set of squares equals .
We count all conflicts involving for coloring. The number of colors that cannot be used for coloring based on the second condition of Definition 12 can be counted equivalently to Lemma 8, resulting in colors that must avoid. Since the counted set of squares contained within is equal to , five additional colors suffice for coloring . This gives us a valid -coloring of .
Lemma 18. [Restated, see original statement.]
The conflict graph is -colorable.
Proof.
This proof follows a similar inductive argument on the size of with an improvement on the proof of Lemma 14, as the definition of conflict in is relaxed.
The base case is trivially true, and for the inductive step, we again pick the smallest non-empty cell , such that and for any cell contained in , . Let be the level of . By the induction hypothesis, is -colorable, and we show that we can color the squares of while maintaining a valid -coloring of . By induction hypothesis, is -colorable, and we show that we can color the squares of while maintaining this property. The proof of Lemma 14, implies that . However, using Definition 17, there is at most one square on each side of the vertical and horizontal level- line cutting through the center of . Hence, it is always possible to pair up the twin squares by giving them the same color, such that we can color the graph using at most three colors as shown in Figure 15.
Using the bound of six (from proof of Lemma 8) on the number of squares in conflicting with any square of leaves three out of nine used to color to color . Eventually, we have a -coloring for .
Lemma 25. [Restated, see original statement.]
The graph is -colorable.
Proof.
We show a -coloring of by induction on the size of the graph with the property that for any cell , all the squares in are colored with at most four colors.
The base case is trivial. Let us consider the smallest cell so that , and for any cell contained in we have . By induction hypothesis, is -colorable. We show that we can color the squares of while maintaining the mentioned property. There are two possible cases:
Case 1.
Consider to be a level- square-cell. Like Lemma 22, we start by counting the number of colors needed for the squares inside , which are precisely . According to Fact 24, at most seven such squares can intersect the level- vertical grid line cutting through . Since there can be at most three squares above and below the level- horizontal grid line, we can pair up the twin squares by giving them the same color, such that we can color the graph with at most four colors (see Figure 13(a) for illustration). Now, we consider the squares not in that conflict with any square in . Any such square must intersect the boundary of the cell (see Figure 16).
-
There can be at most four squares that contain a corner of .
-
We now look at the squares that do not contain any corner of . For the two level- grid lines, there can be only one square intersecting each line without intersecting the corner of the cell: Squares crossing a grid line of level must be of level- for some , and according to Fact 4, their size is strictly bigger than half of the size of a level- cell (specifically, ) with . Thus, at most, two additional conflicting squares can intersect the level- grid lines.
-
Let us consider the two other sides of formed by the level- grid lines. There are at most three squares intersecting those sides but not the corners, since the size of those squares is strictly more than of the size of . In total, there are at most six additional conflicting squares intersecting the level- grid lines.
We have shown that the squares in conflicting with can be colored by at most twelve colors. Considering the additional four colors needed to color , the graph is -colorable.
Case 2.
Consider to be a level- half-cell. The squares contained by are precisely the squares in . According to Fact 24, at most three squares can intersect the level- horizontal grid line cutting through , and they can be colored using three colors as shown in Figure 13(b). Now, we bound the number of colors needed to color the squares not in conflicting with any square in . Note that those squares must intersect the boundary of (see Figure 16).
-
There are at most four squares covering a corner of .
-
Now, consider the squares not containing any of the corners of . Let be the smallest level- square-cell containing . Up to three squares can intersect the vertical level- grid line that shares with , without intersecting a corner of (Figure 17). Since the width of is half that of its height, there can be at most one square intersecting the level- grid lines at the top and the bottom of without intersecting a corner. Hence, at most, two squares intersect the top or bottom grid lines of without intersecting its corners.
(a) All the squares intersecting the gray level- grid line and not a corner are in . (b) The square , intersecting the level- grid line and not a corner, is not in . Figure 17: The black square is a square in , and is a level- cell (shaded). The cell formed by the bold black lines is . The remaining squares are the squares in that conflict with any element of . They can all have different colors in . Next, we examine the fourth side of , which is formed by a level- grid line (the gray lines on Figure 17). We consider two possible scenarios depending on whether all conflicting squares intersecting the level- grid line have as their fitting cell.
-
(a)
If all these squares belong to , then by the induction hypothesis, they are colored with at most four colors (see Figure 17(a)).
-
(b)
Otherwise, there exists a square that also intersects a vertical side of (and not a corner of ) such that is not its fitting cell (see Figure 17(b)). Then, the size of is bigger than half of . Moreover, the size of the other squares crossing this side of (a level- grid line) is strictly more than of . Thus, at most three more squares can fit into this space.
In both scenarios, the squares intersecting the fourth side of can be colored with at most four colors.
-
(a)
We showed that all the squares in conflicting with any square in can be colored using at most thirteen colors. Since we need at most three more colors for the squares in (Figure 13(b)), then is -colorable in this case as well.
