Maths topics › A level Further Maths › D1 and algorithms
Sort a list using a bubble sort
Try a question
Free worksheet
10 questions on this objective, ready to print.
Download the worksheet (PDF)Worked solution
The working
- (a) If the list is already in ascending order, pass 1 makes no swaps, so the sort stops: 1 pass.
- (b) If the smallest item starts at the end, it moves only one place forward in each pass, so it needs 95 passes to reach the front. Counting one more pass that makes no swaps gives 96 passes, the answer expected here.
- Answers: (a) 1; (b) 96.
Answer: a) 1 b) 96
Mathster is maths homework, practice and assessment for schools, with animated worked solutions. Try Mathster free for 60 days →
Objectives from the AS and A level subject content for further mathematics (Department for Education). Contains public sector information licensed under the Open Government Licence v3.0.