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

Thuật toán Kahn (Sort Topo) - O(N+M)

Nhận xét