Rectangle packing
Rectangle packing is a packing problem where the objective is to determine whether a given set of small rectangles can be placed inside a given large polygon, such that no two small rectangles overlap. Several variants of this problem have been studied.
Rectangle packing is a packing problem where the objective is to determine whether a given set of small rectangles can be placed inside a given large polygon, such that no two small rectangles overlap. Several variants of this problem have been studied. == Integer programming formulation== One can model rectangle packing problem for fixed sizes and orientations as an integer linear program. Further, constraints and variables can be added to minimize the bounding-box-netlength. Given small rectangles R_1,...R_n with widths w_1,...,w_n , heights h_1,...,h_n and nets \mathcal{N}_1,...,\mathcal{N}_n as well as a larger rectangle with width W and height H , the integer program looks as follows: Objective minimizing bounding-box-netlength \min \sum_{N \in \cup_{i=1}^n\mathcal{N}_i} y_{N,t} - y_{N,b} + x_{N,r} - x_{N,l} Non-overlap constraints \begin{matrix} x_i + w_i \leq x_j + W(1 - R_{j,i}) \\ y_i + h_i \leq y_j + H(1 - A_{j,i}) \end{matrix} \quad \forall\ 1 \leq i \ne j \leq n Relative placement disjunction R_{j,i} + R_{i,j} + A_{j,i} + A_{i,j} \geq 1 \quad \forall\ 1 \leq i \ne j \leq n Net bounding box coverage constraints \begin{matrix} x_{N,r} \geq x_i + w_i \\ x_{N,l} \leq x_i \\ y_{N,t} \geq y_i + h_i \\ y_{N,b} \leq y_i \end{matrix} \quad \forall\ i \in {1, \ldots, n},\ N \in \mathcal{N}_i Binary variables \begin{matrix} R_{i,j} \in {0, 1} \\ A_{i,j} \in {0, 1} \end{matrix} \quad \forall\ 1 \leq i \ne j \leq n Rectangle position variables \begin{matrix} x_i \in {0, \ldots, W - w_i} \\ y_i \in {0, \ldots, H - h_i} \end{matrix} \quad \forall\ i \in {1, \ldots, n} Net bounding box variables \begin{matrix} x_{N,l},\ x_{N,r} \in {0, \ldots, W} \\ y_{N,b},\ y_{N,t} \in {0, \ldots, H} \end{matrix} \quad \forall N \in \cup_{i=1}^n\mathcal{N}_i For fixed relations R_{i,j}, A_{i,j} the above integer program is the dual of a maximum flow problem and therefore solvable in polynomial time. Not all choices for these spatial relation variables correspond to a feasible placement. A set of relations that contains all feasible placements is called complete. The best known upper bound on the size of a complete set of relations was proved by Silvanus and Vygen, who showed that O\left( n! \cdot C^n /n^6 \right) with C = (11 + 5\sqrt{5})/{2} spatial relations suffice. They also gave a lower bound of O\left( n! \cdot c^n /n^6 \right) with c = 4 + 2\sqrt 2. Heuristics Using different representations such as O-trees, B*-trees or sequence pairs for the spatial relations between rectangles, various heuristic algorithms have been proposed to solve floorplanning instances in practice. Some of them restrict the solution space by only considering sliceable floorplans.
References
- ^ Birgin, E G; Lobato, R D; Morabito, R (2010). "An effective recursive partitioning approach for the packing of identical rectangles in a rectangle". Journal of the Operational Research Society . 61 (2): 306– 320. doi : 10.1057/jors.2008.141 . S2CID 12718141 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Fowler, Robert J.; Paterson, Michael S.; Tanimoto, Steven L. (1981-06-13). "Optimal packing and covering in the plane are NP-complete". Information Processing Letters . 12 (3): 133– 137. doi : 10.1016/0020-0190(81)90111-3 . ISSN 0020-0190 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Demaine, Erik D.; Demaine, Martin L. (2007-06-01). "Jigsaw Puzzles, Edge Matching, and Polyomino Packing: Connections and Complexity". Graphs and Combinatorics . 23 (1): 195– 208. doi : 10.1007/s00373-007-0713-4 . ISSN 1435-5914 . S2CID 17190810 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Huang, E.; Korf, R. E. (2013-01-23). "Optimal Rectangle Packing: An Absolute Placement Approach" . Journal of Artificial Intelligence Research . 46 : 47– 87. arXiv : 1402.0557 . doi : 10.1613/jair.3735 . ISSN 1076-9757 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ "Fast Optimizing Rectangle Packing Algorithm for Building CSS Sprites" . www.codeproject.com . 14 June 2011 . Retrieved 2020-09-09 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1599606000.0
- ^ a b Demaine, Erik (2015). "MIT OpenCourseWare – Hardness made Easy 2 – 3-Partition I" . Youtube . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Chan, T. M. (2003). "Polynomial-time approximation schemes for packing and piercing fat objects". Journal of Algorithms . 46 (2): 178– 189. doi : 10.1016/s0196-6774(02)00294-8 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Fernando, J.; Katkoori, S. (2008). "An Elitist Non-dominated Sorting Based Genetic Algorithm for Simultaneous Area and Wirelength Minimization in VLSI Floorplanning". Proceedings of the 21st International Conference on VLSI Design . IEEE. pp. 337– 342. doi : 10.1109/VLSI.2008.56 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Funke, Julia; Hougardy, Stefan; Schneider, Jan (2016). "An exact algorithm for wirelength optimal placements in VLSI design". Integration: The VLSI Journal . 52 : 355– 366. doi : 10.1016/j.vlsi.2015.07.001 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Lin, P.-H.; Chang, Y.-W.; Lin, S.-C. (2009). "Analog Placement Based on Symmetry-Island Formulation". IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems . 28 (6). IEEE: 791– 804. doi : 10.1109/TCAD.2009.2015708 (inactive 1 July 2025). {{ cite journal }} : CS1 maint: DOI inactive as of July 2025 ( link ) Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Silvanus, Jannik; Vygen, Jens (2017). "Few Sequence Pairs Suffice: Representing All Rectangle Placements". SIAM Journal on Discrete Mathematics . 34 : 2017– 2032. doi : 10.1137/16M1095880 (inactive 1 July 2025). {{ cite journal }} : CS1 maint: DOI inactive as of July 2025 ( link ) Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
- ^ Tang, M.; Sebastian, A. (2005). "A Genetic Algorithm for VLSI Floorplanning Using O-Tree Representation". Applications of Evolutionary Computing . Lecture Notes in Computer Science. Vol. 3449. Springer Berlin Heidelberg. pp. 215– 224. doi : 10.1007/978-3-540-32003-6_22 . Wikipedia revision 1373910553, retrieved 2026-11-18 · 1794956400.0
Cite this
"Rectangle packing". 1788883001. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373910553 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy