Measures of Presortedness and Optimal Sorting Algorithms

Heikki Mannila

IEEE Transactions on Computers · 1985 · 120 citations · 15 references

Concepts

TL;DR

The study defines presortedness, introduces the notion of an algorithm optimal with respect to a presortedness measure, and investigates the problem of finding such optimal algorithms, presenting partial results. The authors propose natural measures of presortedness, establish necessary properties for such measures, and illustrate optimal algorithms with concrete examples. They demonstrate that a new insertion‑sort variant is optimal for three natural presortedness measures and provide partial results toward characterizing optimal algorithms for arbitrary measures.

Abstract

The concept of presortedness and its use in sorting are studied. Natural ways to measure presortedness are given and some general properties necessary for a measure are proposed. A concept of a sorting algorithm optimal with respect to a measure of presortedness is defined, and examples of such algorithms are given. A new insertion sort algorithm is shown to be optimal with respect to three natural measures. The problem of finding an optimal algorithm for an arbitrary measure is studied, and partial results are proven.

References

15