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 have use the first fit algorithm Now we packed them into 5 bins.