Space Engineers
|
Fast representation for disjoint sets. More...
Public Member Functions | |
MyUnionFind () | |
MyUnionFind (int initialSize) | |
void | Resize (int count=0) |
unsafe void | Clear () |
unsafe void | Union (int a, int b) |
unsafe int | Find (int a) |
Fast representation for disjoint sets.
This data structure guarantees virtually constant time operations for union and finding the representative element of disjoint sets.
Still wondering weather the iterator makes sence
Definition at line 24 of file MyUnionFind.cs.
|
inline |
Definition at line 41 of file MyUnionFind.cs.
|
inline |
Definition at line 44 of file MyUnionFind.cs.
|
inline |
Definition at line 59 of file MyUnionFind.cs.
|
inline |
Definition at line 160 of file MyUnionFind.cs.
|
inline |
Definition at line 49 of file MyUnionFind.cs.
|
inline |
Definition at line 69 of file MyUnionFind.cs.