Learn to Program Step-by-Step

Flowcharts: Bubble Sort

Flowchart INDEX, Help
The bubble sort is a really slow sort unless the list is already sorted, then it can finish fast. It compares 0 and 1 and swaps if out of order, then 1 and 2, etc.
Notice that swap uses pass by reference.

Click next to step through the algorithm one step at a time.

Like us on Facebook:

OER: Open Educational Resource
Creative Commons License Author: Janet E. Joy; Publisher: Zebra0.com
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
Creative Commons Attribution-NonCommercial 4.0 International License
Last modified: May 22 2017 18:39:29.