Find rectangles that contain point – Efficient Algorithm

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

Good afternoon.

My situation:

  • In two-dimensional space.
  • Input: a set of rectangles (ov
5条回答
  •  难免孤独
    2020-12-31 09:39

    R-Tree is the best data structure suitable for this use case. R-trees are tree data structures used for spatial access methods, i.e., for indexing multi-dimensional information such as geographical coordinates, rectangles or polygons. The information of all rectangles can be stored in tree form so searching will be easy

    Wikipedia page, short ppt and the research paper will help you understand the concept.

    enter image description here

提交回复
热议问题