Groups
Category
Small-to-large means always merge the smaller container into the larger one to keep total work low.
DSU on Tree (also called the Sack technique) answers many subtree queries in O(n \log n) by keeping data from the heavy child and temporarily re-adding light subtrees.