Strip packing problem
The strip packing problem is a 2-dimensional geometric minimization problem. Given a set of axis-aligned rectangles and a strip of bounded width and infinite height, determine an overlapping-free packing of the rectangles into the strip, minimizing its height. This problem is a cutting and packing problem and is classified as an Open Dimension Problem according to Wäscher et al. This problem arises in the area of scheduling, where it models jobs that require a contiguous portion of the memory over a given time period. Another example is the area of industrial manufacturing, where rectangular pieces need to be cut out of a sheet of material (e.g., cloth or paper) that has a fixed width but... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
The strip packing problem is a 2-dimensional geometric minimization problem. Given a set of axis-aligned rectangles and a strip of bounded width and infinite height, determine an overlapping-free packing of the rectangles into the strip, minimizing its height. This problem is a cutting and packing problem and is classified as an Open Dimension Problem according to Wäscher et al. This problem arises in the area of scheduling, where it models jobs that require a contiguous portion of the memory over a given time period. Another example is the area of industrial manufacturing, where rectangular pieces need to be cut out of a sheet of material (e.g., cloth or paper) that has a fixed width but infinite length, and one wants to minimize the wasted material. This problem was first studied in 1980. It is strongly-NP hard and there exists no polynomial-time approximation algorithm with a ratio smaller than 3/2 unless P = NP . However, the best approximation ratio achieved so far (by a polynomial time algorithm by Harren et al. ) is (5/3 + \varepsilon) , imposing an open question of whether there is an algorithm with approximation ratio 3/2 . An instance I = (\mathcal{I},W) of the strip packing problem consists of a strip with width W = 1 and infinite height, as well as a set \mathcal{I} of rectangular items. Each item i \in \mathcal{I} has a width w_i \in (0,1] \cap \mathbb{Q} and a height h_i \in (0,1] \cap \mathbb{Q} . A packing of the items is a mapping that maps each lower-left corner of an item i \in \mathcal{I} to a position (x_i,y_i) \in ([0,1-w_i] \cap \mathbb{Q}) \times \mathbb{Q}_{\geq 0} inside the strip. An inner point of a placed item i \in \mathcal{I} is a point from the set \mathrm{inn}(i) = \{(x,y) \in \mathbb{Q} \times \mathbb{Q}| x_i . Two (placed) items overlap if they share an inner point. The height of the packing is defined as \max \{y_i+h_i | i \in \mathcal{I}\} . The objective is to find an overlapping-free packing of the items inside the strip while minimizing the height of the packing. This definition is used for all polynomial time algorithms. For pseudo-polynomial time and FPT-algorithms, the definition is slightly changed for the simplification of notation. In this case, all appearing sizes are integral. Especially the width of the strip is given by an arbitrary integer number larger than 1. Note that these two definitions are equivalent. For this reason, it is strongly NP-hard, and there can be no polynomial time approximation algorithm that has an approximation ratio smaller than 3/2 unless P = NP . Furthermore, unless P = NP , there cannot be a pseudo-polynomial time algorithm that has an approximation ratio smaller than 5/4 , which can be proven by a reduction from the strongly NP-complete 3-partition problem. Note that both lower bounds 3/2 and 5/4 also hold for the case that a rotation of the items by 90 degrees is allowed. Additionally, it was proven by Ashok et al. that strip packing is [[Parameterized complexity | W[1]-hard when parameterized by the height of the optimal packing. Define h_{\max}(I) := \max\{h(i) | i \in \mathcal{I}\} . Then it holds that OPT(I) \geq h_{\max}(I) . Another lower bound is given by the total area of the items. Define \mathrm{AREA}(\mathcal{I}) := \sum_{i \in \mathcal{I}}h(i)w(i) then it holds that OPT(I) \geq \mathrm{AREA}(\mathcal{I})/W . The following two lower bounds take notice of the fact that certain items cannot be placed next to each other in the strip, and can be computed in \mathcal{O}(n \log(n)) . For the first lower bound assume that the items are sorted by non-increasing height. Define k := \max \{i : \sum_{j = 1}^k w(j) \leq W\} . For each l > k define i(l) \leq k the first index such that w(l) + \sum_{j = 1}^{i(l)} w(j) > W . Then it holds that OPT(I) \geq \max \{h(l) + h(i(l))| l >k \wedge w(l) + \sum_{j = 1}^{i(l)} w(j) > W\} . For the second lower bound, partition the set of items into three sets. Let \alpha \in [1, W/2]\cap \mathbb{N} and define \mathcal{I}_1(\alpha) := \{i \in \mathcal{I} | w(i) > W - \alpha\} , \mathcal{I}_2(\alpha) := \{i \in \mathcal{I} | W - \alpha \geq w(i) > W/2\} , and \mathcal{I}_3(\alpha) := \{i \in \mathcal{I} | W/2 \geq w(i) > \alpha \} . Then it holds that OPT(I) \geq \max_{\alpha \in [1, W/2]\cap \mathbb{N}} \Bigg\{ \sum_{i \in \mathcal{I}_1(\alpha) \cup \mathcal{I}_2(\alpha)} h(i) + \left(\frac{\sum_{i \in \mathcal{I}_3(\alpha) h(i)w(i) - \sum_{i \in \mathcal{I}_2(\alpha)}(W -w(i))h(i)}}{W}\right)_+ \Bigg\} , where (x)_+ := \max\{x,0\} for each x \in \mathbb{R} . On the other hand, Steinberg has shown that the height of an optimal solution can be upper bounded by OPT(I) \leq 2\max\{h_{\max}(I),\mathrm{AREA}(\mathcal{I})/W\}. More precisely he showed that given a W \geq w_{\max}(\mathcal{I}) and a H \geq h_{\max}(I) then the items \mathcal{I} can be placed inside a box with width W and height H if WH \geq 2\mathrm{AREA}(\mathcal{I}) + (2w_{\max}(\mathcal{I}) - W)_+(2h_{\max}(I) - H)_+ , where (x)_+ := \max\{x,0\} . === Bottom-up left-justified (BL)=== This algorithm was first described by Baker et al. It works as follows: Let L be a sequence of rectangular items. The algorithm iterates the sequence in the given order. For each considered item r \in L , it searches for the bottom-most position to place it and then shifts it as far to the left as possible. Hence, it places r at the bottom-most left-most possible coordinate (x,y) in the strip. This algorithm has the following properties: The approximation ratio of this algorithm cannot be bounded by a constant. More precisely they showed that for each M > 0 there exists a list L of rectangular items ordered by increasing width such that BL(L)/ OPT(L) > M , where BL(L) is the height of the packing created by the BL algorithm and OPT(L) is the height of the optimal solution for L . If the items are ordered by decreasing widths, then BL(L)/ OPT(L) \leq 3 . If the item are all squares and are ordered by decreasing widths, then BL(L)/ OPT(L) \leq 2 . For any \delta > 0 , there exists a list L of rectangles ordered by decreasing widths such that BL(L)/ OPT(L) > 3 - \delta . For any \delta > 0 , there exists a list L of squares ordered by decreasing widths such that BL(L)/ OPT(L) > 2 - \delta . For each \varepsilon \in (0,1] , there exists an instance containing only squares where each order of the squares L has a ratio of BL(L)/ OPT(L) > \frac{12}{11 +\varepsilon} , i.e., there exist instances where BL does not find the optimum even when iterating all possible orders of the items. In 2024 this lower bound has been improved by Hougardy and Zondervan to BL(L)/ OPT(L) > \frac{4}{3 +\varepsilon} . In 2025, Hougardy and Zondervan constructed an ordering of rectangles (called the \mathcal{FQW} -ordering), such that BL(L)/ OPT(L) \leq \frac{13}{6} . For every set of items \mathcal{I} and the corresponding m , it holds that SF(\mathcal{I}) \leq (m+2)/(m+1)OPT(\mathcal{I}) + 2h_{\max} . Note that for m=1 , it holds that SF(\mathcal{I}) \leq (3/2) OPT(\mathcal{I}) + 2h_{\max} For each \varepsilon >0 , there is a set of items \mathcal{I} such that SF(\mathcal{I}) > \left((m+2)/(m+1) -\varepsilon\right)OPT(\mathcal{I}) . Define a new sub-strip s with s.xposition = 0, s.yposition = 0, s.width = W, s.lower = 0, s.upper = 0, s.itemWidth = W; Add s to S; while I not empty do i := I.pop(); Removes widest item from I Define new list S_2 containing all the substrips with s.width - s.itemWidth ≥ i.width; S_2 contains all sub-strips where i fits next to the already placed item if S_2 is empty then In this case, place the item on top of another one. Find the sub-strip s in S with smallest s.upper; i.e. the least filled sub-strip Place i at position (s.xposition, s.upper); Update s: s.lower := s.upper; s.upper := s.upper+i.height; s.itemWidth := i.width; else In this case, place the item next to another one at the same level and split the corresponding sub-strip at this position. Find s ∈ S_2 with the smallest s.lower; Place i at position (s.xposition + s.itemWidth, s.lower); Remove s from S; Define two new sub-strips s1 and s2 with s1.xposition = s.xposition, s1.yposition = s.upper, s1.width = s.itemWidth, s1.lower = s.upper, s1.upper = s.upper, s1.itemWidth = s.itemWidth; s2.xposition = s.xposition+s.itemWidth, s2.yposition = s.lower, s2.width = s.width - s.itemWidth, s2.lower = s.lower, s2.upper = s.lower + i.height, s2.itemWidth = i.width; S.add(s1,s2); return end function This algorithm has the following properties: The running time can be bounded by \mathcal{O}(|\mathcal{I}|^2) since the number of substrips is bounded by |\mathcal{I}| . For any set of items \mathcal{I} it holds that SP(\mathcal{I}) \leq 2 OPT(\mathcal{I}) + h_{\max} \leq 3 OPT(\mathcal{I}) . For any \varepsilon >0 , there exists a set of items \mathcal{I} such that SP(\mathcal{I}) > (3-\varepsilon) OPT(\mathcal{I}) . For any \varepsilon >0 and C>0 , there exists a set of items \mathcal{I} such that SP(\mathcal{I}) > (2-\varepsilon) OPT(\mathcal{I})+C . === Reverse-fit (RF)=== This algorithm was first described by Schiermeyer. The description of this algorithm needs some additional notation. For a placed item i \in \mathcal{I} , its lower left corner is denoted by (a_i,c_i) and its upper right corner by (b_i,d_i) . Given a set of items \mathcal{I} and a strip of width W , it works as follows: Stack all the rectangles of width greater than W/2 on top of each other (in random order) at the bottom of the strip. Denote by H_0 the height of this stack. All other items will be packed above H_0 . Sort the remaining items in order of nonincreasing height and consider the items in this order in the following steps. Let h_{\max} be the height of the tallest of these remaining items. Place the items one by one left aligned on a shelf defined by H_0 until no other item fit on this shelf or there is no item left. Call this shelf the first level. Let h_1 be the height of the tallest unpacked item. Define a new shelf at H_0 + h_{\max} + h_1 . The algorithm will fill this shelf from right to left, aligning the items to the right, such that the items touch this shelf with their top. Call this shelf the second reverse-level. Place the items into the two shelves due to First-Fit, i.e., placing the items in the first level where they fit and in the second one otherwise. Proceed until there are no items left, or the total width of the items in the second shelf is at least W/2 . Shift the second reverse-level down until an item from it touches an item from the first level. Define H_1 as the new vertical position of the shifted shelf. Let f and s be the right most pair of touching items with f placed on the first level and s on the second reverse-level. Define x_r := \max(b_f,b_s) . If x_r then s is the last rectangle placed in the second reverse-level. Shift all the other items from this level further down (all the same amount) until the first one touches an item from the first level. Again the algorithm determines the rightmost pair of touching items f' and s' . Define h_2 as the amount by which the shelf was shifted down. If h_2 \leq h(s) then shift s to the left until it touches another item or the border of the strip. Define the third level at the top of s' . If h_2 > h(s) then shift s define the third level at the top of s' . Place s left-aligned in this third level, such that it touches an item from the first level on its left. Continue packing the items using the First-Fit heuristic. Each following level (starting at level three) is defined by a horizontal line through the top of the largest item on the previous level. Note that the first item placed in the next level might not touch the border of the strip with their left side, but an item from the first level or the item s . This algorithm has the following properties: The running time can be bounded by \mathcal{O}(|\mathcal{I}|^2) , since there are at most |\mathcal{I}| levels. For every set of items \mathcal{I} it produces a packing of height RF(\mathcal{I}) \leq 2 OPT(\mathcal{I}) . === Steinberg's algorithm (ST)=== Steinbergs algorithm is a recursive one. Given a set of rectangular items \mathcal{I} and a rectangular target region with width W and height H , it proposes four reduction rules, that place some of the items and leaves a smaller rectangular region with the same properties as before regarding of the residual items. Consider the following notations: Given a set of items \mathcal{I} we denote by h_{\max}(\mathcal{I}) the tallest item height in \mathcal{I} , w_{\max}(\mathcal{I}) the largest item width appearing in \mathcal{I} and by \mathrm{AREA}(\mathcal{I}) := \sum_{i \in \mathcal{I}} w(i)h(i) the total area of these items. Steinbergs shows that if h_{\max}(\mathcal{I}) \leq H , w_{\max}(\mathcal{I}) \leq W , and \mathrm{AREA}(\mathcal{I}) \leq W\cdot H - (2h_{\max}(\mathcal{I}) -h)_+(2w_{\max}(\mathcal{I}) - W)_+ , where (a)_+ := \max\{0,a\} , then all the items can be placed inside the target region of size W \times H . Each reduction rule will produce a smaller target area and a subset of items that have to be placed. When the condition from above holds before the procedure started, then the created subproblem will have this property as well. Procedure 1: It can be applied if w_{\max}(\mathcal{I}') \geq W/2 . Find all the items i \in \mathcal{I} with width w(i) \geq W/2 and remove them from \mathcal{I} . Sort them by nonincreasing width and place them left-aligned at the bottom of the target region. Let h_0 be their total height. Find all the items i \in \mathcal{I} with width h(i) > H-h_0 . Remove them from \mathcal{I} and place them in a new set \mathcal{I}_H . If \mathcal{I}_H is empty, define the new target region as the area above h_0 , i.e. it has height H-h_0 and width W . Solve the problem consisting of this new target region and the reduced set of items with one of the procedures. If \mathcal{I}_H is not empty, sort it by nonincreasing height and place the items right allinged one by one in the upper right corner of the target area. Let w_0 be the total width of these items. Define a new target area with width W-w_0 and height H - h_0 in the upper left corner. Solve the problem consisting of this new target region and the reduced set of items with one of the procedures. Procedure 2: It can be applied if the following conditions hold: w_{\max}(\mathcal{I}) \leq W/2 , h_{\max}(\mathcal{I}) \leq H/2 , and there exist two different items i,i' \in \mathcal{I} with w(i) \geq W/4 , w(i') \geq W/4 , h(i) \geq H/4 , h(i') \geq H/4 and 2(\mathrm{AREA}(\mathcal{I}) - w(i)h(i) -w(i')h(i')) \leq (W- \max\{w(i),w(i')\})H . Find i and i' and remove them from \mathcal{I} . Place the wider one in the lower-left corner of the target area and the more narrow one left-aligned on the top of the first. Define a new target area on the right of these both items, such that it has the width W- \max\{w(i),w(i')\} and height H . Place the residual items in \mathcal{I} into the new target area using one of the procedures. Procedure 3: It can be applied if the following conditions hold: w_{\max}(\mathcal{I}) \leq W/2 , h_{\max}(\mathcal{I}) \leq H/2 , |\mathcal{I}| > 1 , and when sorting the items by decreasing width there exist an index m such that when defining \mathcal{I'} as the first m items it holds that \mathrm{AREA}(\mathcal{I})- WH/4 \leq \mathrm{AREA}(\mathcal{I'}) \leq 3WH/8 as well as w(i_{m+1})\leq W/4 Set W_1 := \max{W/2, 2\mathrm{AREA}(\mathcal{I'})/H} . Define two new rectangular target areas one at the lower-left corner of the original one with height H and width W_1 and the other left of it with height H and width W-W_1 . Use one of the procedures to place the items in \mathcal{I'} into the first new target area and the items in \mathcal{I}\setminus\mathcal{I'} into the second one. Note that procedures 1 to 3 have a symmetric version when swapping the height and the width of the items and the target region. Procedure 4: It can be applied if the following conditions hold: w_{\max}(\mathcal{I}) \leq W/2 , h_{\max}(\mathcal{I}) \leq H/2 , and there exists an item i \in \mathcal{I} such that w(i) h(i) \geq \mathrm{AREA}(\mathcal{I}) - WH/4 . Place the item i in the lower-left corner of the target area and remove it from \mathcal{I} . Define a new target area right of this item such that it has the width W-w(i) and height H and place the residual items inside this area using one of the procedures. This algorithm has the following properties: The running time can be bounded by \mathcal{O}(|\mathcal{I}| \log(|\mathcal{I}|)^2/\log(\log(|\mathcal{I}|))) . For every set of items \mathcal{I} it produces a packing of height ST(\mathcal{I}) \leq 2 OPT(\mathcal{I}) . The pseudo-polynomial time algorithms that have been developed mostly use the same approach. It is shown that each optimal solution can be simplified and transformed into one that has one of a constant number of structures. The algorithm then iterates all these structures and places the items inside using linear and dynamic programming. The best ratio accomplished so far is (5/4 +\varepsilon) OPT(I) . while there cannot be a pseudo-polynomial time algorithm with ratio better than 5/4 unless P = NP
Cite this
"Strip packing problem". 1789327415. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1374739632 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy