Improvements in Bubblesort

Which distance measures improve in BUBBLESORT? If we can find one that decreases steadily, then we can prove that BUBBLESORT is correct, since it will eventually work its way down to zero (and therefore a sorted list).

Which measures decrease?


next up previous
Next: Step 3: Analyze Running Up: BUBBLESORT Previous: Measures of Sortedness