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 progressBubbles Rising to the Top
Bubble sort is named after bubbles rising in water. It compares two neighbouring items, swaps them if they are in the wrong order, and moves along the list. After one full run (a pass), the largest value has "bubbled up" to the end. It keeps making passes until the list is sorted.
This is the bubble sort flowchart. It uses two loops: i counts the passes and j moves along the list comparing neighbouring items.
Make this stick
Signing in gives access to all PrepWise features.