Union-Find 이란?

Union-Find 연산

→ 이때 parent는 초기 값이 자기 자신이다. 즉, parent[0] = 0, parent[1] = 1, … 이라는 의미!