Find rectangles that contain point – Efficient Algorithm

前端 未结 5 1113
自闭症患者
自闭症患者 2020-12-31 08:50

Good afternoon.

My situation:

  • In two-dimensional space.
  • Input: a set of rectangles (ov
5条回答
  •  悲哀的现实
    2020-12-31 09:48

    It seems that your set of rectangles may be dynamic ("...for adding rectangles..."). In this case - 2D Interval tree could be the solution.

提交回复
热议问题