Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5b531196
Commit
5b531196
authored
Dec 04, 2006
by
Matthias Braun
Browse files
improved comments
[r8424]
parent
c9872ce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/adt/unionfind.h
View file @
5b531196
...
...
@@ -13,6 +13,11 @@
* @file unionfind.h
*
* Union-Find datastructure
*
* This implementation uses weighted sets and path compression which results
* in O(n) complexity for n find and union operations (actually it's
* n * alpha(n) with alpha being the inverse of the ackermann function and
* therefore smaller than 5 for all 64bit values of n)
*/
#ifndef _UNIONFIND_H
#define _UNIONFIND_H
...
...
@@ -70,9 +75,9 @@ static INLINE int uf_union(int* data, int set1, int set2) {
/**
* Finds the representative for the set with member @p e.
* The representative of a set is unique, so if the find operations
*
2 similar
/different representatives, then the elements are in the
* same/
2
different sets.
* The representative of a set is unique, so if the find operations
finds
*
the same
/different representatives, then the elements are in the
*
the
same/different sets.
*
* @param data The union find data
* @param e The element
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment