AQA GCSE Computer Science Paper 1 (1C), June 2025: Question 6
10 marks · Medium difficulty · Short Answer
Demonstrate the operation of bubble sort and merge sort on a list of numbers, compare the two sorting algorithms, and explain why binary search is preferable to linear search for a large sorted array.
Practise this questionQuestion
Question text
06 A series of numbers shown in Figure 6 are to be sorted into ascending order (from
smallest to largest).
Figure 6
45 23 78 55 49
06.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 17 49 55 78
06.2 A programmer decides to use a merge sort algorithm to sort the same values shown
in Figure 6.
Complete the diagram to show how the merge part of the merge sort algorithm is
applied to Figure 6.
[3 marks]
06.3 State one advantage and one disadvantage of a bubble sort compared to a merge
sort.
[2 marks]
Advantage
Disadvantage
06.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]
Mark scheme
Show the mark scheme
Total
Question Part Marking guidance
marks
06 1 3 marks for AO2 (apply) 3
1 mark for each correct change in correct order;
I. Blanks for repeated values.
Maximum 2 marks if grid not fully correct.
The correct sequence is:
45 23 78 55 49
23 45 78 55 49
23 45 55 78 49
23 45 55 49 78
23 45 49 55 78
If the response shows the sort completed in a single pass, as follows, then
award 1 mark;
45 23 78 55 49
23 45 55 49 78
23 45 49 55 78
23 45 49 55 78
Total
Question Part Marking guidance
marks
06 2 3 marks for AO2 (apply) 3
MP1: for correctly sorting pairs (Red Boxes);
MP2: for correctly leaving 1 element on its own after sorting pairs (Green
Boxes);
MP3: for correctly sorting 3 or 4 elements (Blue Boxes);
Maximum two marks if any errors
I. if the final row has been rewritten by the student
Example One (fully correct)
Example Two (fully correct)
Example Three (fully correct)
Question Part Total
Marking guidance
marks
06 3 2 marks for AO1 (understanding) 2
Advantage of bubble sort
Maximum of 1 mark from:
● Bubble sort is simpler to code // Algorithm requires fewer lines of
code;
● Bubble sort can be quicker to sort small lists/arrays;
A. Bubble sort will use less memory // bubble sort only requires one
additional memory location (whereas merge sort requires more than one) ;
Disadvantage of bubble sort
Maximum of 1 mark from:
● Bubble sort does not sort (large) lists/arrays as quickly as merge
sort;
● Bubble sort is less efficient;
NE. Answers that have not been qualified (e.g. bubble sort is simple).
Total
Question Part Marking guidance
marks
06 4 2 marks for AO2 (apply) 2
● A binary search is more efficient (on average) / takes less time (on
average) ;
//
a linear search would be less efficient (on average) because it
(potentially) must check all (2500) elements;
● (because) fewer comparisons will need to be made (on average) to
locate the search term;
//
(For this scenario) a binary search would (take at maximum 12
searches as it) halves the number of values each time;
How to answer it
AQA GCSE Computer Science: Sorting & Searching Algorithms
This 10-mark question evaluates practical algorithmic understanding: tracing a Bubble Sort step-by-step when swaps occur, constructing the combine/rebuilding phase of a Merge Sort, evaluating the trade-offs (memory and speed) between both sorting methods, and calculating efficiency gains of a Binary Search over a Linear Search in ordered datasets.
Bubble Sort: Tracing Swaps
Completing the trace table every time the order changes
✅ Complete Traced Table
Fill each row only when a swap occurs:
| Pos 1 | Pos 2 | Pos 3 | Pos 4 | Pos 5 |
|---|---|---|---|---|
| 45 | 23 | 78 | 55 | 49 |
| 23 | 45 | 78 | 55 | 49 |
| 23 | 45 | 55 | 78 | 49 |
| 23 | 45 | 55 | 49 | 78 |
| 23 | 45 | 49 | 55 | 78 |
Green highlighted cells indicate the adjacent pairs swapped in that row.
📐 Step-by-Step Execution (Pass 1)
- Compare 45 & 23: 45 > 23 → SWAP .
List: [23, 45, 78, 55, 49] (Row 1 filled) - Compare 45 & 78: 45 < 78 → No swap.
- Compare 78 & 55: 78 > 55 → SWAP .
List: [23, 45, 55, 78, 49] (Row 2 filled) - Compare 78 & 49: 78 > 49 → SWAP .
List: [23, 45, 55, 49, 78] (Row 3 filled)
🧠 Exam Technique & Guidance
- Read the trigger condition: "Show the new order every time the order has changed". Do not write a row if two items are compared and not swapped.
- One swap per row: A common misconception is writing only the state at the end of each full pass. That only gets 1 mark out of 3.
- Self-check: The final printed row already had [23, 45, 49, 55, 78] . Notice that in Pass 2, 55 and 49 swap to reach this final state.
❌ Common Errors
- Skipping intermediate swaps: Showing the list after each complete pass through the array rather than after every individual swap.
- Sorting elements all at once: Writing down what the sort "should look like" instead of mechanically following adjacent pair comparisons.
Merge Sort: Merging Phase
Completing the diagram to show lists being ordered and merged back together
GIVEN: Split into individual sub-lists of size 1
Sorted Pair
Sorted Pair
Left on its own
4 Elements Sorted
Single Element
GIVEN: Final fully merged list
✅ Mark Scheme Criteria
- MP1: Correctly sorting pairs: [23, 45] and [55, 78] (or grouping from right-to-left: [45] , [23, 78] , [49, 55] ).
- MP2: Correctly leaving 1 element on its own after sorting pairs ( [49] or [45] ).
- MP3: Correctly combining into 3 or 4 sorted elements (e.g. [23, 45, 55, 78] with [49] , or [23, 45] with [49, 55, 78] ).
💡 How "Merging" Works
Merge sort uses Divide and Conquer. Because 5 elements cannot divide evenly, one item remains alone. When two ordered lists are merged, the algorithm compares the first available items of each sub-list and inserts the smaller item into the new list.
Comparing Bubble Sort vs Merge Sort
Evaluating advantages and disadvantages
✅ Advantage of Bubble Sort (1 Mark)
State any one of:
- It is simpler to code / requires fewer lines of code.
- It can be quicker for small lists (or already nearly sorted lists).
- It uses less memory / sorts in place (merge sort requires additional auxiliary memory to store split sub-lists).
✅ Disadvantage of Bubble Sort (1 Mark)
State any one of:
- It does not sort large lists as quickly as merge sort.
- It is significantly less efficient on larger datasets (time complexity O(n²) vs O(n log n)).
❌ Common Pitfall: Unqualified Answers
The examiner strictly notes: NE (Not Enough) for just writing "Bubble sort is simple" or "It's easy". You must specify that it is simple to code / program / implement.
🧠 Exam Technique Tip
When asked to compare two algorithms, always mention the key computer science constraints: execution speed (time) and memory usage (space).
Binary Search vs Linear Search
Explaining why binary search is superior for 2500 ordered numbers
✅ Model Answer (2 Marks)
"A binary search is much faster and more efficient on average than a linear search [Mark 1] because it halves the remaining dataset with each comparison, requiring far fewer comparisons (a maximum of 12) compared to a linear search which might have to examine all 2500 items [Mark 2] ."
📐 The Math Behind 2500 Items
- Linear Search (Worst case): Must check all 2500 items sequentially.
- Binary Search (Worst case): Halves each time:
2500 → 1250 → 625 → 313 → 157 → 79 → 40 → 20 → 10 → 5 → 3 → 2 → 1
Since 2¹¹ = 2048 and 2¹² = 4096, it takes at most 12 comparisons!
💡 Why Binary Search Works Here
Binary search requires the list to be ordered. The question explicitly states the 2500 numbers are "stored in ascending order", meaning binary search can be applied directly without any preliminary sorting step.
❌ Common Errors
- Saying simply "it is faster" without stating why (halving the list / significantly fewer comparisons).
- Failing to reference the context (2500 elements or worst-case linear search checking everything).
• Point 1: Binary search is more efficient / takes less time / linear search could potentially check all 2500 elements.
• Point 2: Requires fewer comparisons / halves the dataset each step (max 12 checks).
Topics
3.1 Fundamentals of algorithms · 3.1.3 Searching algorithms · 3.1.4 Sorting algorithms
Question and mark scheme from the AQA GCSE Computer Science examination, Paper 1 (1C), June 2025. QuestionVault is an independent revision resource; questions remain the copyright of the awarding body.