Bin Packing - First Fit Decreasing Algorithm
Bin Packing - First Fit Decreasing Algorithm
With the first fit decreasing algorithm we sort the blocks into descending order first.
4 1 2
5 3 2 3
6 3
4 C
3 D E F
3
6 5 4 C 3 D E F
3
6 5 4 C 3 D 3 E F
2
6 5 4 C
3
3 D 3 E F
2
6 5 4 C
3
3 D
2 3 E F
2
4 C
3
3 D
2 3 E F
We Now have we use packed the first them fit into algorithm 5 bins.