Given two (large) sets of points, how can I efficiently find pairs that are nearest to each other?

后端 未结 4 1972
囚心锁ツ
囚心锁ツ 2021-02-01 22:39

I need to solve a computational problem that boils down to searching for reciprocally-nearest pairs of points between two sets. The problem goes something like this:

Giv

4条回答
  •  盖世英雄少女心
    2021-02-01 22:54

    • BSP / Octree / Kd-tree (thanks, TZHX)
    • Space-filling curves (e.g. using Hilbert curve); google yields many relevant results for pair finding.

提交回复
热议问题