Measures of Sortedness

We want a distance measure of list sortedness. This means that a sorted list should score zero, and any unsorted list should score a positive amount.

Some measures:

Example:


next up previous
Next: Improvements in Bubblesort Up: BUBBLESORT Previous: Step 2: Prove Correctness