Naïve solutions
Fast find
Idea: | recolor |
Advantages: | fast find |
Disadvantages: | slow union |
Fast union
Idea: | link |
Advantages: | fast union |
Disadvantages: | slow find |
Idea: | recolor |
Advantages: | fast find |
Disadvantages: | slow union |
Idea: | link |
Advantages: | fast union |
Disadvantages: | slow find |