We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6baac9a commit b86247aCopy full SHA for b86247a
src/data_structures/disjoint_set_union.md
@@ -314,9 +314,9 @@ for (int i = m-1; i >= 0; i--) {
314
}
315
```
316
317
-There is one optimization:
318
-We can use **union by rank**, if we store the next unpainted cell in an additional array `end[]`.
319
-Then we can merge two sets into one ranked according to their heuristics, and we obtain the solution in $O(\alpha(n))$.
+There is an optimization:
+We can use union by rank / size, if we store the next unpainted cell in an additional array `end[]`.
+Then we can merge two sets into one according to their heuristics, and we obtain the solution in $O(\alpha(n))$.
320
321
### Support distances up to representative
322
0 commit comments