Sorting: bubble sort and merge sort
This worksheet marks itself
Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.
- 12 questions
- 34 marks
- about 40 minutes
- marked instantly
Question types: short answer, multiple choice, matching, true or false.
Try one from this worksheet
A bubble sort puts the list 7, 4, 1, 6 into ascending order. Identify the list after the first pass.
Pick an answer: it's marked straight away, just as your pupils would see it.
About this resource
AQA A-level Computer Science (7517) 4.3.5.1 Bubble sort · 4.3.5.2 Merge sort. C# lesson 4 of 5 in 4.3 Fundamentals of algorithms: a trace-one-pass Do Now, a short key idea, a 12-challenge ladder in three sets with exact test data, two exam questions and a worksheet. Replaces aqa-7517-4-3d-sorting.
19 slides.
Lesson outline
- Do Now: trace one pass
- Do Now: answers
- Key idea: Bubble sort, pass by pass
- Key idea: Two improvements, and the worst case
- Key idea: Two improvements, and the worst case: check your predictions
- Key idea: Merge sort: divide and conquer
- Key idea: The merge step, and why n log n
- Key idea: The merge step, and why n log n: check your predictions
- Set 1: bubble sort, pass by pass
- Set 2: count the work, then cut it
- Exam question E1: bubble sort
- Model answer E1
More from 4.3 Algorithms · full C# lessons
- Lesson pack · 4.3 L1Graph traversal: breadth-first and depth-firstSubscription
- Lesson pack · 4.3 L2Tree traversal and Reverse Polish notationSubscription
- Lesson pack · 4.3 L3Searching: linear, binary and binary tree searchSubscription
- Lesson pack · 4.3 L5Optimisation: Dijkstra's shortest path algorithmSubscription


