Question 1

Edexcel Further Maths June 2019 A Level Paper 3DA level8 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.1 Algorithms: order and implementation (3D Decision Maths 1)
Question text

1. 2.1 1.7 3.0 1.9 3.2 1.2 3.3 1.4 1.5 0.2 (a) Use the first-fit bin packing algorithm to determine how the numbers listed above can be packed into bins of size 5 (2) The list of numbers is now to be sorted into descending order. (b) Perform a quick sort on the original list to obtain the sorted list. You should show the result of each pass and identify your pivots clearly. (4) For a list of n numbers, the quick sort algorithm has, on average, order nlogn. Given that it takes 2.32 seconds to run the algorithm when n = 450 (c) calculate approximately how long it will take, to the nearest tenth of a second, to run the algorithm when n = 11 250. You should make your method and working clear. (2) (Total for Question 1 is 8 marks)