Question 2

OCR B (MEI) Further Maths June 2024 Modelling with algorithms (Y413-01)AS8 marks

On the specification

(a)
A1–A11 Modelling with Algorithms (Y413): Algorithms
(b)
A1–A11 Modelling with Algorithms (Y413): Algorithms
(c)
A1–A11 Modelling with Algorithms (Y413): Algorithms
(d)
A1–A11 Modelling with Algorithms (Y413): AlgorithmsOT1 Overarching Theme 1: Mathematical argument, language and proof
Question text

2 The list below shows the sizes of nine items. 31 13 12 17 25 18 11 8 15 (a) Show the result of applying the first fit algorithm to pack items with the sizes listed above into bins that have a capacity of 50. [1] (b) Apply the quick sort algorithm to sort the list of numbers above into ascending order. You should use the first value as the pivot for each sublist. [3] (c) Show the result of applying the first fit decreasing algorithm to pack items with the sizes listed above into bins that have a capacity of 50. [2] (d) By finding an optimal packing using a full bin strategy, explain why both first fit and first fit decreasing are examples of heuristic algorithms. [2]