Question 6
AQA Computer Science June 2025 Paper 1C (8525/1C)GCSE10 marks
On the specification
- 6.1
- 3.1 Fundamentals of algorithms
- 6.2
- 3.1 Fundamentals of algorithms
- 6.3
- 3.1 Fundamentals of algorithms
- 6.4
- 3.1 Fundamentals of algorithms
Question text
6 A series of numbers shown in Figure 6 are to be sorted into ascending order (from box smallest to largest). Figure 6 45 23 78 55 49 6.1 A bubble sort algorithm has been developed to sort the numbers in Figure 6. Fill in the table to show the steps involved in applying a bubble sort algorithm to sort the numbers shown in Figure 6. You should show the new order every time the order has changed. [3 marks] 45 23 78 55 49 23 45 49 55 78 6.2 A programmer decides to use a merge sort algorithm to sort the same values shown box in Figure 6. Complete the diagram to show how the merge part of the merge sort algorithm is applied to Figure 6. [3 marks] 6.3 State one advantage and one disadvantage of a bubble sort compared to a merge box sort. [2 marks] Advantage Disadvantage 6.4 The programmer has an array of 2500 numbers, stored in ascending order (smallest to largest). The programmer needs to write a program to search for a value in the array. Explain why a binary search is better than a linear search for this array. [2 marks]