algorithmmathpackinganalytical

How to spread boxes on into another box in non-iterative manner?


So I have boxes of different sizes (squares). I have a Big Box (not a square). I have no guarantee that all of my boxes will fit, yet I need to try to fit as much as possible in a non-iterative manner without overlap. What algorithm allows for such non-iterative a box packing?


Solution

  • Here is it Bin Packing Algorithm, demo, start from biggets to lowest size and try search for the place.