What is the worst-case running time of unions done by size and path compression?

What is the worst-case running time of unions done by size and path compression?
A. O(N)
B. O(logN)
C. O(N logN)
D. O(M logN)
 

Tìm kiếm

Back
Top