Question 4

Edexcel Further Maths June 2023 9FM0-3D A Level Decision Mathematics 1A level12 marks

On the specification

(a)
3D 1.2 Bin packing, bubble sort and quick sort
(b)
3D 1.2 Bin packing, bubble sort and quick sort
(c)
3D 1.2 Bin packing, bubble sort and quick sort
(d)
3D 1.2 Bin packing, bubble sort and quick sort
(e)
3D 1.2 Bin packing, bubble sort and quick sort
Question text

4. The eleven distinct numbers listed below are to be packed into bins of size 40 15 22 3 9 23 x 5 4 18 20 13 It is known that x • is an integer less than 40 • is the largest number in the list (a) Explain why it is not possible to pack the numbers into 3 bins of size 40 (1) Given that it is possible to pack the numbers into 4 bins of size 40 (b) determine the range of values for x (2) (c) Use the first-fit bin packing algorithm to determine how the numbers can be packed into bins of size 40 (3) (d) Carry out a quick sort to produce a list of the numbers in descending order. You should show the result of each pass and identify your pivots clearly. (4) When the first-fit decreasing bin packing algorithm is applied to the list, neither the 15 nor the 13 is placed in the first bin. (e) Determine the value of x. You must give reasons for your answer. (2) (Total for Question 4 is 12 marks)