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
On computing majority by comparisons - MaRDI portal

On computing majority by comparisons (Q1181015)

From MaRDI portal





scientific article; zbMATH DE number 27535
Language Label Description Also known as
English
On computing majority by comparisons
scientific article; zbMATH DE number 27535

    Statements

    On computing majority by comparisons (English)
    0 references
    0 references
    0 references
    27 June 1992
    0 references
    The authors investigate the problem of finding an element in the larger part of a partition of an \(n\)-element set into two classes based on comparison, i.e. for any two elements there is a decision whether or not they belong to the same part. They give an algorithm, which finds such an element with at most \(n-B(n)\) comparisons, where \(B(n)\) is the number of 1's in the binary expansion of \(n\), and they show that this algorithm is optimal.
    0 references
    partition
    0 references

    Identifiers

    0 references
    0 references
    0 references
    0 references
    0 references