I am doing some research on a subset of the rectangle packing problem, and while I have found many similar problems discussed on SO, I do not see this specific problem.
Given the size of a container, and a set of rectangles, minimize the amount of wasted space. Multiple copies of the same rectangle can be added into the grid, but they are not allowed to rotate.
Example:
We are given a 5x5 grid to place squares into.
We are given the shapes of each piece:
- 4x1
- 1x3
- 4x2
To minimize the wasted space, we can place rectangles like so:
For a minimum wasted space of 2 squares.
Although similar problems exist, has research been done on this subset of problem?
Does an algorithm exist for performing said task (or an approximation?)
Similar problems:
The above link is useful but is a little too slow for my use cases.