Year 10

Bubble sort

Link copied to clipboard

Year 10

Bubble sort

Link copied to clipboard

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

These resources were created for remote use during the pandemic and are not designed for classroom teaching.

Lesson details

Key learning points

  1. In this lesson, we will learn the first sorting algorithm in this unit: bubble sort. We will discuss why and where sorting is used in real life, become familiar with performing a bubble sort on a set of data, and investigate the efficiency of bubble sort.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

4 Questions

Q1.
The sequence of items in the list can either be ordered or unordered.
Binary Search
Correct answer: Linear Search
Q2.
If you double the number of items in the list, you will need at most one more comparison.
Correct answer: Binary Search
Linear Search
Q3.
The algorithm is simpler to write.
Binary Search
Correct answer: Linear Search
Q4.
What does the initial value of -1 indicate?
The item has been found.
Correct answer: The item has not been found.

3 Questions

Q1.
"If the item at the current position is greater than the one next to it, swap the items within the list"
False
Correct answer: True
Q2.
"A single pass results in the smallest element reaching its final position at the end of the list"
Correct answer: False
True
Q3.
"The number of comparisons made in a single pass is always equal to the number of pairs you pass over"
False
Correct answer: True