p. labs CS495 · Teaching mini lesson · V2

Data structures · 10 minutes · V2

Disjoint
set union.

Who belongs together?

Track separate groups.
Find a representative. Merge groups.

By the endUse makeSet, Find, and Merge to decide which items belong together.
Today’s route

Three operations → Parents & roots → Your turn → Check understanding

ABCDOne set
E
F
6 items. 3 disjoint sets.
Keep the activity readylabs.psubham.com/ppt/dsu-v2/?mode=activityScan now. We’ll use it in a few minutes.
01 / 08

Use Left / Right or Space to change slides · F to present · N for notes