Compressing sets of rectangles... help me find an algorithm?
tlb: I think Cairo, the graphics rendering library keeps an internal data structure that's the set of overlapping filled regions and updates it with and/or/xor operators.