Rectangles Covering

Posted by den bardadym on Stack Overflow See other posts from Stack Overflow or by den bardadym
Published on 2010-04-13T08:41:33Z Indexed on 2010/04/13 8:42 UTC
Read the original article Hit count: 272

Filed under:
|

I have N rectangles with sides parallel Ox and Oy. Exists another rectangele (model). I need create algorithm, which can tell: is model covered by N rectangles? and code him.

I have some ideas. First I think need sort rectangles by left side (it can be done by O(n log n)). Then I think need use vertical sweeping line.

Thanks.

© Stack Overflow or respective owner

Related posts about geometry

Related posts about rectangles