Bin Packing Algorithms
Bin Packing Consider a set of bins, all the same cross section and height. The bin packing problem is to pack into the bins a number of boxes of the same cross section as the bins, but of varying height so as to use the minimum possible bins.
Example: suppose bins are 15m tall and boxes are:- Box A B C D E F G H I J Height
Example: suppose bins are 15m tall and boxes are:- Box A B C D E F G H I J Height Total size of all bins = 59, 59/15 = 3 and 14/15 So best solution could be 4???? But this may or may not be possible
Full Bin Combinations For problems with only a few bins it is possible to look for combinations that will fill a bin. For example if we look at the example mentioned before:-
Example: suppose bins are 15m tall and boxes are:- Box A B C D E F G H I J Height Here we can spot some full bin combinations B + E Full bin 1 A + C Full bin 2 G + H + J -----Full bin 3 This leaves D, F and I = 14, almost fills bin 4
This is best summarised using a diagram