testBubble[]

Applying bubble sort to {}...

 ... result is {}

Applying bubble sort to {1}...

 ... result is {1}

Applying bubble sort to {1, 2}...

 ... result is {1, 2}

Applying bubble sort to {2, 1}...

 ... result is {1, 2}

Applying bubble sort to {5, 4, 3, 2, 1}...

 ... result is {1, 2, 3, 4, 5}

 number of comparisons in last sort was 10


Created by Mathematica  (September 29, 2004)