Groups
Category
Mo's algorithm answers many range queries offline by reordering them to minimize pointer movement along the array.
The union area of many axis-aligned rectangles can be computed efficiently using a sweep line over x and a segment tree tracking covered y-length.