유니온 파인드 최적화
경로 압축(Path Compression)과 랭크 기반 합집합(Union by Rank)
Tree
Parent
Rank
Union(x, y)
Find(x)
이전
다음
전체 리셋