What algorithm can be used for packing rectangles of different sizes into the smallest rectangle possible in a fairly optimal way?

Ive got a bunch of rectangular objects which I need to pack into the smallest space possible (the dimensions of this space should be powers of two). I’m aware of various packing algorithms that will pack the items as well as possible into a given space, however in this case I need the algorithm to … Read more