Question: VLSI databases commonly represent an integrated circuit as a list of rectangles. Assume that each rectangle is rectilinearly oriented (sides parallel to the x- and
VLSI databases commonly represent an integrated circuit as a list of rectangles. Assume that each rectangle is rectilinearly oriented (sides parallel to the x- and y-axes), so that we represent a rectangle by its minimum and maximum x and y-coordinates. Give an O(n lg n)-time algorithm to decide whether or not a set of n rectangles so represented contains two rectangles that overlap. Your algorithm need not report all intersecting pairs, but it must report that an overlap exists if one rectangle entirely covers another, even if the boundary lines do not intersect. Move a "sweep" line across the set of rectangles.
Step by Step Solution
3.38 Rating (160 Votes )
There are 3 Steps involved in it
General idea Move a sweep line from left to right while maintaining the set of rectangles currently ... View full answer
Get step-by-step solutions from verified subject matter experts
