ABSTRACT
Given a set of axis-aligned rectangles in the plane, this paper presents an algorithm for the removal of rectangle containment as well as rectangle enclosures. That is, given a query rectangle Rq, this algorithm removes all rectangles Rk, … , Rl from the rectangle set that are contained in Rq. It also removes Rq if there is a rectangle Rj that encloses Rq. The algorithm, initially implemented for rectangle spline generation using rectangles as building blocks, is fast, easy to implement and maintain, it can be run on parallel machines such as GPUs at no extra cost, but it requires extra memory to store the rectangle indexes for quick access and space partitioning.
GRAPHICAL ABSTRACT
![](/cms/asset/2e09fe89-18c8-4c07-a1c0-2e39af35d6a9/tcad_a_949566_uf0001_b.gif)
ACKNOWLEDGEMENTS
This work was supported in part by Synopsys, Inc. and Najran University. All opinions, findings and conclusions are those of the authors and do not necessarily reflect the funding agencies or the institutions the authors are affiliated with.