Union-Find (Disjoint Sets)

Data Structures & Algorithms · Graphs & Disjoint Sets · Master · 14 min

Track groups that merge: friend circles, network connections, Kruskal's MST.

This lesson is part of TuringPath Pro. See plans.

What you will learn

  • Two operations
  • Why it's so fast
  • Union by rank, the other half of the speed

More in Graphs & Disjoint Sets

Previous: Graphs & Grids · Next: Segment Trees & Fenwick Trees