If you have n elements and perform m union operations, what is the amortized tim
Practice Questions
Q1
If you have n elements and perform m union operations, what is the amortized time complexity of each operation in a Disjoint Set Union with path compression and union by rank?
O(1)
O(log n)
O(n)
O(α(n))
Questions & Step-by-Step Solutions
If you have n elements and perform m union operations, what is the amortized time complexity of each operation in a Disjoint Set Union with path compression and union by rank?