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
A linear-time algorithm for a special case of disjoint set union - MaRDI portal

A linear-time algorithm for a special case of disjoint set union (Q1062461)

From MaRDI portal





scientific article; zbMATH DE number 3913702
Language Label Description Also known as
English
A linear-time algorithm for a special case of disjoint set union
scientific article; zbMATH DE number 3913702

    Statements

    A linear-time algorithm for a special case of disjoint set union (English)
    0 references
    0 references
    0 references
    1985
    0 references
    This paper presents a linear-time algorithm for the special case of the disjoint set union problem in which the structure of the unions (defined by a ''union tree'') is known in advance. The algorithm executes an intermixed sequence of m union and find operations on n elements in \(O(m+n)\) time and O(n) space. This is a slight but theoretically significant improvement over the fastest known algorighm for the general problem, which runs in \(O(m\alpha (m+n,n)+n)\) time and O(n) space, where \(\alpha\) is a functional inverse of Ackermann's function.
    0 references
    union tree
    0 references
    0 references
    0 references
    0 references

    Identifiers