【发布时间】:2019-05-21 00:46:24
【问题描述】:
我正在研究disjoint algorithm with the union by rank and path compression。
我很清楚如果使用Union by rank,那么find() operation 的复杂度就是O(log(n))。
但我想知道如果我使用按等级联合还是不使用按等级联合,不相交集算法的complexity of the path compression technique 是什么?
【问题讨论】:
标签: algorithm disjoint-sets union-find