본문 바로가기

Algorithm/Etc

Union find

 

make-set

 

union(x, y) = y를 x의 자손으로 넣음

 

 

 

 

 

[알고리즘] Union-Find 알고리즘 - Heee's Development Blog

Step by step goes a long way.

gmlwjd9405.github.io

 

 

weighting rule for union( i, j )

collapsing find set

'Algorithm > Etc' 카테고리의 다른 글