Thuật toán CTDL Disjoint set - ~O(3N+5)

Lũy thừa nhị phân - O(log2(N))

Nhận xét