Groups
Category
The Minkowski sum A โ B adds every point of set A to every point of set B, and for convex polygons it can be computed in O(n + m) by merging edge directions.
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.