Question 1
OCR B (MEI) Further Maths November 2020 Modelling with algorithms (Y433-01)A level7 marks
On the specification
- (a)
- A7-A9 Modelling with Algorithms: Sorting algorithms
- (b)
- A10-A11 Modelling with Algorithms: Packing algorithms
- (c)
- A10-A11 Modelling with Algorithms: Packing algorithms
Question text
1 12 15 11 9 20 16 8 23 10 7 (a) Apply the quick sort algorithm to sort the list of numbers into descending order. You should use the first value as the pivot for each sublist. [3] The values represent masses, measured in kg. (b) Show the result of applying the first fit decreasing algorithm to pack these masses into bags that can each hold a maximum of 40 kg. [2] (c) Show the result of applying a full bin strategy to pack these masses into bags that can each hold a maximum of 40 kg. [2]