encyclopegia.org

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

  1. An effective recursive partitioning approach for the packing of identical rectangles in a rectangle · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "An effective recursive partitioning approach for the packing of identical rectangles in a rectangle." Birgin, E G; Lobato, R D; Morabito, R (2010). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "An effective recursive partitioning approach for the packing of identical rectangles in a rectangle." Birgin, E G; Lobato, R D; Morabito, R (2010). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Birgin, E G; Lobato, R D; Morabito, R (2010). (2026). An effective recursive partitioning approach for the packing of identical rectangles in a rectangle. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  2. Optimal packing and covering in the plane are NP-complete · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "Optimal packing and covering in the plane are NP-complete." Fowler, Robert J. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Optimal packing and covering in the plane are NP-complete." Fowler, Robert J. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Fowler, Robert J. (2026). Optimal packing and covering in the plane are NP-complete. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  3. Jigsaw Puzzles, Edge Matching, and Polyomino Packing: Connections and Complexity · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "Jigsaw Puzzles, Edge Matching, and Polyomino Packing: Connections and Complexity." Demaine, Erik D. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Jigsaw Puzzles, Edge Matching, and Polyomino Packing: Connections and Complexity." Demaine, Erik D. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Demaine, Erik D. (2026). Jigsaw Puzzles, Edge Matching, and Polyomino Packing: Connections and Complexity. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  4. Optimal Rectangle Packing: An Absolute Placement Approach · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "Optimal Rectangle Packing: An Absolute Placement Approach." Huang, E. 2026-11-17. https://en.wikipedia.org/wiki/Richard_E._Korf. Accessed 24 November 2026.

    Chicago "Optimal Rectangle Packing: An Absolute Placement Approach." Huang, E. 2026-11-17. https://en.wikipedia.org/wiki/Richard_E._Korf.

    APA Huang, E. (2026). Optimal Rectangle Packing: An Absolute Placement Approach. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Richard_E._Korf

  5. Fast Optimizing Rectangle Packing Algorithm for Building CSS Sprites · retrieved 2020-09-08 · rev 1373910553
    Cite this reference

    MLA "Fast Optimizing Rectangle Packing Algorithm for Building CSS Sprites." 2020-09-08. https://www.codeproject.com/Articles/210979/Fast-optimizing-rectangle-packing-algorithm-for-bu. Accessed 24 November 2026.

    Chicago "Fast Optimizing Rectangle Packing Algorithm for Building CSS Sprites." 2020-09-08. https://www.codeproject.com/Articles/210979/Fast-optimizing-rectangle-packing-algorithm-for-bu.

    APA encyclopegia.org. (2020). Fast Optimizing Rectangle Packing Algorithm for Building CSS Sprites. Retrieved November 24, 2026, from https://www.codeproject.com/Articles/210979/Fast-optimizing-rectangle-packing-algorithm-for-bu

  6. MIT OpenCourseWare – Hardness made Easy 2 – 3-Partition I · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "MIT OpenCourseWare – Hardness made Easy 2 – 3-Partition I." a b Demaine, Erik (2015). 2026-11-17. https://www.youtube.com/watch?v=ZaSMm2xvatw. Accessed 24 November 2026.

    Chicago "MIT OpenCourseWare – Hardness made Easy 2 – 3-Partition I." a b Demaine, Erik (2015). 2026-11-17. https://www.youtube.com/watch?v=ZaSMm2xvatw.

    APA a b Demaine, Erik (2015). (2026). MIT OpenCourseWare – Hardness made Easy 2 – 3-Partition I. Retrieved November 24, 2026, from https://www.youtube.com/watch?v=ZaSMm2xvatw

  7. Polynomial-time approximation schemes for packing and piercing fat objects · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "Polynomial-time approximation schemes for packing and piercing fat objects." Chan, T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Polynomial-time approximation schemes for packing and piercing fat objects." Chan, T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Chan, T. (2026). Polynomial-time approximation schemes for packing and piercing fat objects. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  8. An Elitist Non-dominated Sorting Based Genetic Algorithm for Simultaneous Area and Wirelength Minimization in VLSI Floorplanning · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "An Elitist Non-dominated Sorting Based Genetic Algorithm for Simultaneous Area and Wirelength Minimization in VLSI Floorplanning." Fernando, J. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "An Elitist Non-dominated Sorting Based Genetic Algorithm for Simultaneous Area and Wirelength Minimization in VLSI Floorplanning." Fernando, J. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Fernando, J. (2026). An Elitist Non-dominated Sorting Based Genetic Algorithm for Simultaneous Area and Wirelength Minimization in VLSI Floorplanning. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  9. An exact algorithm for wirelength optimal placements in VLSI design · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "An exact algorithm for wirelength optimal placements in VLSI design." Funke, Julia; Hougardy, Stefan; Schneider, Jan (2016). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "An exact algorithm for wirelength optimal placements in VLSI design." Funke, Julia; Hougardy, Stefan; Schneider, Jan (2016). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Funke, Julia; Hougardy, Stefan; Schneider, Jan (2016). (2026). An exact algorithm for wirelength optimal placements in VLSI design. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  10. Analog Placement Based on Symmetry-Island Formulation · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "Analog Placement Based on Symmetry-Island Formulation." Lin, P. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Analog Placement Based on Symmetry-Island Formulation." Lin, P. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Lin, P. (2026). Analog Placement Based on Symmetry-Island Formulation. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  11. Few Sequence Pairs Suffice: Representing All Rectangle Placements · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "Few Sequence Pairs Suffice: Representing All Rectangle Placements." Silvanus, Jannik; Vygen, Jens (2017). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Few Sequence Pairs Suffice: Representing All Rectangle Placements." Silvanus, Jannik; Vygen, Jens (2017). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Silvanus, Jannik; Vygen, Jens (2017). (2026). Few Sequence Pairs Suffice: Representing All Rectangle Placements. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  12. A Genetic Algorithm for VLSI Floorplanning Using O-Tree Representation · retrieved 2026-11-17 · rev 1373910553
    Cite this reference

    MLA "A Genetic Algorithm for VLSI Floorplanning Using O-Tree Representation." Tang, M. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "A Genetic Algorithm for VLSI Floorplanning Using O-Tree Representation." Tang, M. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Tang, M. (2026). A Genetic Algorithm for VLSI Floorplanning Using O-Tree Representation. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

Cite this article

MLA

"Rectangle packing." encyclopegia.org, 2026, https://encyclopegia.org/wiki/rectangle-packing. Accessed 24 November 2026.

Chicago

"Rectangle packing." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/rectangle-packing.

APA

encyclopegia.org. (2026). Rectangle packing. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/rectangle-packing

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

set packing

stub · references available

close-packing of equal spheres

stub · references available

rectangle squaring

stub · references available

Finite sphere packing

stub · references available

Rectangle

stub · references available

Packing the Monkeys

stub · references available

packing dimension

stub · references available

Hallmark/Westland Meat Packing Company

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373910553 · 0.5 · snapshot enwiki-001373910553

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.