AS October 2020 Q1

EdexcelAS paperCurrent spec6 marksAlgorithms

1.

3.72.55.41.92.73.23.12.74.22.0
(a) Use the first-fit bin packing algorithm to determine how the numbers listed above can be packed into bins of size 8.5 (3)

The first-fit bin packing algorithm is to be used to pack \(n\) numbers into bins. The number of comparisons is used to measure the order of the first-fit bin packing algorithm.

(b) By considering the worst case, determine the order of the first-fit bin packing algorithm in terms of \(n\). You must make your method and working clear. (3)