A machinist has to cut the following seven lengths (in centimetres) of steel tubing.
$$150 \quad 104 \quad 200 \quad 60 \quad 184 \quad 84 \quad 120$$
- Perform a quick sort to put the seven lengths in descending order. [4 marks]
The machinist is to cut the lengths from rods that are each 240 cm long. You may assume that no waste is incurred during the cutting process.
- Explain how to use the first-fit decreasing bin-packing algorithm to find the minimum number of rods required. Show that, using this algorithm, five rods are needed. [4 marks]
- Find if it is possible to cut additional pieces with a total length of 300 cm from the five rods. [1 mark]