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
Ranking and unranking permutations in linear time - MaRDI portal

Ranking and unranking permutations in linear time (Q1603397)

From MaRDI portal





scientific article; zbMATH DE number 1767194
Language Label Description Also known as
English
Ranking and unranking permutations in linear time
scientific article; zbMATH DE number 1767194

    Statements

    Ranking and unranking permutations in linear time (English)
    0 references
    14 July 2002
    0 references
    A ranking function for the permutations on \(n\) symbols assigns a unique integer in the range [0,n!-1]\ to each of the \(n!\) permutations. The corresponding unranking function is the inverse: given an integer between \(0\) and \(n!-1\), the value of the function is the permutation having this rank. We present simple ranking and unranking algorithms for permutations that can be computed using \(O(n)\) arithmetic operations.
    0 references
    Permutation
    0 references
    Ranking
    0 references
    Unranking
    0 references
    Algorithms
    0 references
    Combinatorial problems
    0 references
    0 references
    0 references

    Identifiers