Math · Intermediate · Lesson 2 of 7
Sorting
Bubble sort versus merge sort
An interactive lesson with 8 steps, about 7 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- Bubble sort compares neighbours: about comparisons.
- Merge sort divides and conquers: about .
- For big inputs, the algorithm matters far more than the computer’s speed.
Steps
- Bubble sort
- Merge sort
- Merge sort in action
- Merge sort, step by step
- Merging
- A million items
- Nearly sorted
- The speed limit