Question 1
OCR B (MEI) Further Maths June 2019 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): Algorithms
Question text
1 24 17 9 25 18 11 23 19 30 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. [2] (b) Use the quick sort algorithm to sort the list of numbers above into descending order. You should use the first value as the pivot for each sublist. [3] (c) Show the result of using the first fit decreasing algorithm to pack items with the sizes listed above into bins that have a capacity of 50. [2] The number of comparisons is used as a measure of the complexity of both the first fit and first fit decreasing packing algorithms. (d) Explain why, in the worst case, both packing algorithms have the same order of complexity. [1]