Year 10 - Computing
Bubble sort
Searching and sorting algorithms
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 10 - Computing
Searching and sorting algorithms
In this unit pupils will have opportunities to analyse, interpret, modify, and implement a range of searching and sorting algorithms. They will have the opportunity to compare the features and efficiency of these algorithms and make suggestions about the most suitable algorithm for a given task.
You will learn to perform a bubble sort to order data in a list.
The bubble sort algorithm works by repeatedly going through a list. It compares adjacent items and swaps the items if they are in the wrong order.
a sorting algorithm that repeatedly compares pairs of values within a list and swaps them if they are out of order. Add one real device or system example to prove understanding.
Mistake: The bubble sort algorithm stops on the last swap. Correction: The pass through the list is repeated until no more changes are made on a pass. The last pass is needed to confirm the data is in order.
Browse all guides in the Year 10 Computing guide library.