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
Inversions in \(k\)-sorted permutations - MaRDI portal

Inversions in \(k\)-sorted permutations (Q1270771)

From MaRDI portal





scientific article; zbMATH DE number 1218467
Language Label Description Also known as
English
Inversions in \(k\)-sorted permutations
scientific article; zbMATH DE number 1218467

    Statements

    Inversions in \(k\)-sorted permutations (English)
    0 references
    0 references
    7 March 1999
    0 references
    From author's abstract: When a list of size \(n\) is nearly sorted, a straight insertion sort algorithm is highly efficient since only a number of comparisons equal to the number of inversions in the original list, plus at most \(n - 1\), is required. We use a definition of nearly sorted, \(k\)-sorted, as given in \textit{K. A. Berman} and \textit{J. L. Paul} [Fundamentals of sequential and parallel algorithms (1997)] and determine the maximum number of inversions in \(k\)-sorted permutations of size \(n\). This number is approximately \(0.6kn\).
    0 references
    inversions
    0 references
    permutations
    0 references
    insertion sort
    0 references
    \(k\)-ordered
    0 references
    \(k\)-sorted
    0 references
    0 references
    0 references

    Identifiers