[Algorithm] disjoint-set

pre generating Forests

join merge relationship tree

find find child node

 

Source: https://blog.csdn.net/liujian20150808/article/details/50848646

Guess you like

Origin www.cnblogs.com/alfredsun/p/11413697.html