Deprecated: $wgMWOAuthSharedUserIDs=false is deprecated, set $wgMWOAuthSharedUserIDs=true, $wgMWOAuthSharedUserSource='local' instead [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/w/includes/HookContainer/HookContainer.php at line 135] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
Asymptotic estimates for the higher moments of the expected behavior of straight insertion sort - MaRDI portal

Asymptotic estimates for the higher moments of the expected behavior of straight insertion sort (Q790618)

From MaRDI portal





scientific article; zbMATH DE number 3848622
Language Label Description Also known as
English
Asymptotic estimates for the higher moments of the expected behavior of straight insertion sort
scientific article; zbMATH DE number 3848622

    Statements

    Asymptotic estimates for the higher moments of the expected behavior of straight insertion sort (English)
    0 references
    1982
    0 references
    The author studies the complexity of one of the simplest sorting algorithms -- straight insertion sort. The number of executions of the while-loop in the algorithm, \(W(n)\) (where \(n\) is the number of elements to be sorted) is analysed as a random variable, whose \(k\)-th moment, \(W(n,k)\) is asymptotically estimated, by turns, for \(k\to \infty\) and for \(n\to \infty\). \(W(n,k)\) is explicitly represented by means of Bernoulli numbers; fixing \(k\), the major term giving the asymptotic estimation of \(W(n,k)\) is found to be \((\frac n2)^{2k}\).
    0 references
    0 references
    insertion sort
    0 references
    average case analysis
    0 references
    higher moments
    0 references
    Bernoulli numbers
    0 references

    Identifiers