Skip to content

Union-Find

Merge groups in near-constant time, then ask who belongs together.

Start the module

1. Disjoint Sets Basics · 5 min

0 of 4 lessons · 0% complete

Start module

Union-Find visualizer

Every lesson in this module opens with an animation you can step through. This is the first one — Disjoint Sets Basics: Every group is named by one root, and find walks up to it.

Disjoint Sets Basics

Step 1 of 8

Six elements, each its own parent. That is six separate groups, before anything is joined.

Lessons
4
Minutes
20
Problems
12
Concepts
3

Quiz yourself: 3 questions from this module

1 / 3

How is the root of a group recognised?