CLRS says "we shall analyze the running time of disjoint-set in terms of two parameters:
- n, the number of MAKE-SET operations
- m, the total number of MAKE-SET, UNION and FIND-SET operations"
Why is this different from most analyzations of other algorithms where the complexity is calculated in terms of input size?
Any algorithm using the Disjoint-Set data structure will use these 3 operations. We need to analyze the runtime of all these operations with respect to input size.
Typically,
These are the 2 numbers n, m described in CLRS. Let me rephrase it
Per Theorem 21.14:
To perform 'm' operations, with disjoint-set forest with union by rank and path compression implementation, You will have a worst-case runtime of O(m * α(n))
Hope it helps!