x

Bubble Sort

Used to sort numbers

Method
  1. Check to see if the first two items in the list are in order. If not, swap them.
  2. If they are in order, leave them as they are.
  3. Once the end of the list is reached, go back to the beginning of the list and start again.
  4. The list is in order when a pass is made with no swaps made.
Left-click: follow link, Right-click: select node, Scroll: zoom
x