Test yourself on Bubble Sort with exam style questions, marked instantly.
Flashcards that come back just before you would forget them.
A revision plan that remembers what you know and shows what to do next.
See which topics you have nailed and which need another look.
Quiz yourself on Bubble SortGet your flashcardsBuild my revision planTrack my progressBubble Sort at a Glance
| Feature | Bubble Sort |
|---|---|
| Method | Compare neighbouring items, swap if in the wrong order, repeat passes |
| After each pass | The largest unsorted value is in its final place at the end |
| Stops when | A full pass makes no swaps |
| Maximum passes | n - 1 passes that make swaps, for a list of n items |
| Extra memory | None: it sorts in place, without a second list |
| Advantage | Simple to understand and to program |
| Disadvantage | Slow on large lists because of the many comparisons and swaps |
Make this stick
Signing in gives access to all PrepWise features.