D1 June 2008 Q1

EdexcelOld spec8 marksAlgorithms

1.

295273877447386141

The numbers in the list represent the lengths in minutes of nine radio programmes. They are to be recorded onto tapes which each store up to 100 minutes of programmes.

(a) Obtain a lower bound for the number of tapes needed to store the nine programmes. (2)
(b) Use the first-fit bin packing algorithm to fit the programmes onto the tapes. (3)
(c) Use the first-fit decreasing bin packing algorithm to fit the programmes onto the tapes. (3)