Question 3.21

21. When the bins have capacity 5, the next-fit decreasing (NFD) bin-packing algorithm when applied to the list 3, 2, 4, 1, 1, 4, 4 uses

  1. 4 bins.
  2. 5 bins.
  3. 7 bins.

21.

b