−Every element $x$ stores a parent index $\text{parent}[x]$, while a root representative points to itself ($ ext{parent}[r] = r$). Calling find(x) follows parent pointers to the root; two elements belong to the same set if and only if they share a root. Because a merge can change which root represents a set, domain-level group metadata should be keyed by the current root or stored externally rather than assuming a fixed representative ID.
+Every element $x$ stores a parent index $\text{parent}[x]$, while a root representative points to itself ($\text{parent}[r] = r$). Calling find(x) follows parent pointers to the root; two elements belong to the same set if and only if they share a root. Because a merge can change which root represents a set, domain-level group metadata should be keyed by the current root or stored externally rather than assuming a fixed representative ID.