Algorithm Analyse
union-find