When we find out the union we have to combine two sets .
but why bhaiya make make one node as a parent node please can anybody clear this.
DSU union operation
Parent node is the identity of a set, so any set should have a parent node, so that all the elements in the set have a common identity.
Thank’s bro for resolving my doubt 
1 Like