Concept Flow - Path Compression in Union Find
Find node's parent
Is parent itself?
Return parent
Update node's parent to root
Return root
This flow shows how path compression finds the root parent of a node and updates the node's parent directly to the root to flatten the structure.
