Question 2
OCR A Further Maths November 2021 Discrete mathematics (Y534-01)AS11 marks
On the specification
- (a)(i)
- 7.03 Algorithms
- (a)(ii)
- 7.03 Algorithms
- (a)(iii)
- 7.03 Algorithms
- (b)
- 7.03 Algorithms
- (c)
- 7.01 Mathematical Preliminaries7.03 Algorithms
Question text
2 Seven items need to be packed into bins. Each bin has capacity 30 kg. The sizes of the items, in kg, in the order that they are received, are as follows. 12 23 15 18 8 7 5 (a) Find the packing that results using each of these algorithms. (i) The next-fit method [2] (ii) The first-fit method [2] (iii) The first-fit decreasing method [2] (b) A student claims that all three methods from part (a) can be used for both ‘online’ and ‘offline’ lists. Explain why the student is wrong. [2] The bins of capacity 30 kg are replaced with bins of capacity Mkg, where M is an integer. The item of size 23 kg can be split into two items, of sizes xkg and (23 - x) kg, where x may be any integer value you choose from 1 to 11. No other item can be split. (c) Determine the smallest value of M for which four bins are needed to pack these eight items. Explain your reasoning carefully. [3]