I was studying the disjoint algorithm with the union by rank and path compression.
It is clear to me if Union by rank
is used then the find() operation
complexity is O(log(n))
.
But I wonder what is the complexity of the path compression technique
for disjoint set algorithm if I use union by rank or not use union by rank?