I hope my title makes sense, but here is what I'm trying to do:
I have rectangles n, each with a width of W n and a height of H n , which I need to arrange so on the two-dimensional (x, y) plane of the rectangle into which they all fit into the smallest area. I should also be able to establish that (x, y) matches what the rectangle is.
I would prefer something in psuedo code, but can work with many languages.
Thanks for the help.
source
share