### Motivation Disjoint set Data structure is commonly used in advanced graph problems. ### Examples _No response_ ### Possible workarounds We can implement the disjoint set in two ways by union by size and union by rank ### Additional information _No response_