Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Redundant Connection
Bookmark
Input
Triangle
Square with extra
Hexagon
Custom
edges
=
[[1,2],[1,3],[2,3]]
Input Graph
1
2
3
Union-Find Structure
1
root
2
root
3
root
Legend:
Standard
Processing
Active
Redundant
algo
master
.
io
Step:
Initialize Union-Find for 3 nodes (1 to 3)
0 / 16
Input
Triangle
Square with extra
Hexagon
Custom
edges
=
[[1,2],[1,3],[2,3]]
0 / 16
Input Graph
1
2
3
Union-Find Structure
1
root
2
root
3
root
Legend:
Standard
Processing
Active
Redundant
algo
master
.
io
Step:
Initialize Union-Find for 3 nodes (1 to 3)