On the distribution of comparisons in sorting algorithms (Q1115198)

From MaRDI portal
Revision as of 10:42, 30 July 2024 by Openalex240730090724 (talk | contribs) (Set OpenAlex properties.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
scientific article
Language Label Description Also known as
English
On the distribution of comparisons in sorting algorithms
scientific article

    Statements

    On the distribution of comparisons in sorting algorithms (English)
    0 references
    0 references
    0 references
    0 references
    1988
    0 references
    We consider the following natural conjecture: For every sorting algorithm every key will be involved in \(\Omega\) (log n) comparisons for some input. We show that this is true for most of the keys and prove matching upper and lower bounds. Every sorting algorithm for some input will involve \(n-n^{\epsilon}/2+1\) keys in at least \(\epsilon\) \(log_ 2 n\) comparisons, \(\epsilon >0\). Further, there exists a sorting algorithm that will for every input involve at most \(n-n^{\epsilon /c}\) keys in greater than \(\epsilon\) \(log_ 2 n\) comparisons, where c is a constant and \(\epsilon >0\). The conjecture is shown to hold for ``natural'' algorithms from the literature.
    0 references
    adversaries
    0 references
    sorting
    0 references
    lower bounds
    0 references

    Identifiers