Question 1
OCR A Further Maths June 2025 Discrete mathematics (Y534-01)AS6 marks
On the specification
- (a)
- 7.03 Algorithms
- (b)
- 7.03 Algorithms
- (c)
- 7.03 Algorithms
Question text
1 A builder has some pieces of wood that are 6 m in length. The builder needs to cut smaller pieces to use in a project. The lengths of the smaller pieces required are shown below. 2.5 m 2 m 4.5 m 3 m 1.5 m 3.5 m 2 m (a) Use the first-fit decreasing algorithm to determine the smallest number of 6 m lengths of wood needed to cut the seven smaller pieces. [3] (b) First-fit decreasing is a heuristic algorithm. Explain what this means. [1] 2 The first-fit decreasing algorithm is order O(n ). (c) It takes a computer 3.2 seconds to solve an allocation problem involving 200 items of data using the first-fit decreasing algorithm. Calculate approximately how long it would take to solve an allocation problem involving 1000 items of data. [2]