Algorithm Science (Summer 2025) - 30 - Disjoint Sets @billbird2597
Algorithm Science (Summer 2025) - 30 - Disjoint Sets  @billbird2597
Uploaded June 2025 | Updated November 2026, 2 hours ago
This video was made as part of a second-year undergraduate algorithms course sequence (Algorithms and Data Structures I and II).

0:00 Introduction
1:25 Connected Components
17:46 Component Representatives
20:16 Disjoint Sets
25:36 Representatives
31:18 Linked List Disjoint Sets
41:25 Disjoint Set Forests
52:19 Union and Find Operations
56:04 Maximum Height
1:11:10 Path Compression
1:19:20 The Ackermann Function (+ Philosophical Discussion)
1:35:28 Finding Connected Components

The definition of the Ackermann function used here was based on the one in
"Computability" by N. J. Cutland.
The discussion of the Ackermann and inverse Ackermann functions in Section 19.4 of Introduction to Algorithms (3rd edition) by Cormen, Leiserson, Rivest and Stein is thorough and interesting, although that source uses a different definition of the Ackermann function than the one used here.
The “Pale Blue Dot” photograph taken by Voyager 1 was originally published by NASA. The version shown in these slides was acquired from Wikimedia Commons (see commons.wikimedia.org/wiki/File:Pale_Blue_Dot.png for details). See also youtu.be/wupToqz1e2g.
The “Earthrise” photograph was taken as part of the Apollo 8 mission and also originally published by NASA. The version shown in these slides was acquired from Wikimedia Commons (see commons.wikimedia.org/wiki/File:NASA-Apollo8-Dec24-Earthrise.jpg for details).

All other slides and diagrams are original content (developed in mid-2025). The materials used in this video, and the video itself, were prepared without any assistance from generative AI.

As any viewer will quickly realize, these videos were made just like in-person lectures: in one sitting, with no breaks, editing or script. If you find any of this helpful or interesting, please let me know (I really appreciate any other feedback as well).
Algorithm Science (Summer 2025) - 30 - Disjoint SetsC Programming Practice (Fall 2023) - 11.01 - Structure TypesC++ Programming (Spring 2022) - Lecture 6.04 - Class Member InitializationAlgorithm Science (Summer 2025) - 39 - Network Flows IIIC++ Programming (Spring 2022) - Lecture 10.05 - Writing a Vector (Part 3)C++ Programming - Spring 2022 - Lecture 10.02 - Memory LeaksC++ Programming (Spring 2022) - Lecture 4.03 - Sequences and CollectionsC++ Programming (Spring 2022) - Lecture 3.07 - Exception Mechanics (Part 2)C++ Programming (Spring 2022) - Lecture 2.12 - Tracing with References (Example 2)C++ Programming Practice (Fall 2023) - 1.02 - StringsC++ Programming (Spring 2022) - Lecture 11.02 - Stacks of AnythingC++ Programming (Spring 2022) - Lecture 8.09 - Base Class Behavior
BillBird |

Algorithm Science (Summer 2025) - 30 - Disjoint Sets

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER