The list 6, 2, 8, 10, 6, 3, 8, 5, 6, 5, 8 is to be packed in bins of size 14 using the first-fit heuristic. For each value of the list determine the corresponding bin number. Enter the bin number in the box directly below the list value.

628106385658

Next we sort the given list in order of decreasing size to obtain 10, 8, 8, 8, 6, 6, 6, 5, 5, 3, 2. Now use the first-fit-decreasing algorithm to pack the list into bins of size 14.

108886665532

You can earn partial credit on this problem.