树上启发式合并(DSU on Tree)

什么是 DSU on Tree?

DSU on Tree(Disjoint Set Union on Tree),中文称为“树上启发式合并”,是一种用于高效处理树上子树统计类问题的算法技巧。尽管 …

more ...