class implements a data structure for collections of dynamic disjoint sets of integers
#include <set.h>
Inheritance diagram for ABA_SET::
|
The destructor.
The collection of sets is implemented by a collection of trees. parent [i] is the parent of node i in the tree representing the set containing i. If i is the root of a tree then parent [i] is i itself.
class implements a data structure for collections of dynamic disjoint sets of integers
Definition at line 41 of file set.h.
The constructor.
The destructor.
Creates a set storing only one element and adds it to the collection of sets.
Unites the two sets which contain x and y, respectively.
This operation may only be performed if both x and y have earlier been added to the collection of sets by the function makeSet().
We do not use the heuristic attaching the smaller subtree to the bigger one, since we want to guarantee that the representative of x is always the representative of the two united sets.
true If both sets have been disjoint before the function call,
false otherwise.
Reimplemented in ABA_FASTSET.
Finds the representative of the set containing x.
This operation may be only performed if x has been earlier added to the collection of sets by the function makeSet().
A path compression is performed, i.e., all nodes of the tree on the path from x to the root are directly attached to the root of the tree.
The representative of the set containing x.
A pointer to the corresponding global object.
Definition at line 101 of file set.h.
The collection of sets is implemented by a collection of trees. parent [i] is the parent of node i in the tree representing the set containing i. If i is the root of a tree then parent [i] is i itself.
Definition at line 108 of file set.h.
The documentation for this class was generated from the following file: