Find the nearest dot in a 2D space

前端 未结 4 1269
庸人自扰
庸人自扰 2021-02-19 21:17

Yesterday I read a problem which can be translated into the following problem with slight modification:

The coordinate of a dot is expressed by (x, y) in a 2D space.

4条回答
  •  不思量自难忘°
    2021-02-19 21:51

    You can use a Bounding Volume Hierarchy. This does not improve on the worst-case complexity though, nor does it directly lead to an exact solution.

提交回复
热议问题