Measures of Sortedness

Often it useful to talk about measures of list sortedness. Such a distance measure should assign a score of zero to a sorted list, and any unsorted list should score a positive amount.

Some measures:

Example:


next up previous
Next: Sorting with Small Insertion Up: INSERTION SORT Previous: Step 3: Efficiency