Question 1

OCR A Further Maths June 2017 Decision mathematics 1 (4736-01)Older specification6 marks

On the specification

(i)
7.03 Algorithms
(ii)(a)
7.03 Algorithms
(ii)(b)
7.03 Algorithms
Question text

1 The following list is to be arranged into increasing order, from smallest to largest. 12 10 3 6 12 4 5 (i) Use bubble sort to arrange the list into increasing order starting at the left-hand side of the list. Record the whole list at the end of each pass. There is no need to show the individual comparisons or swaps. [3] A different list was arranged into increasing order using bubble sort. The following list is what was obtained after the first pass. 27 8 14 40 (ii) (a) Write down two possible orders for the original list. [2] (b) How many more passes will be needed to complete the sort (excluding the first)? [1]