【发布时间】:2011-05-04 20:25:07
【问题描述】:
所以,我正在实施KD-Tree 来进行最近邻搜索。我已经让构建树部分工作,但我认为我不完全理解搜索部分。
关于遍历树搜索邻居,维基百科的文章说如下:
Starting with the root node, the algorithm moves down the tree recursively, in the same
way that it would if the search point were being inserted (i.e. it goes right or left
depending on whether the point is greater or less than the current node in the split
dimension).
“大于或小于当前节点在spit维度是什么意思?我们是根据与查询的距离比较点还是根据分割维度比较点?
另外,有人能解释一下关于超空间和超平面的部分吗?我觉得我理解它,但由于我不确定我是否需要更多解释。
谢谢!
【问题讨论】:
标签: algorithm search tree implementation nearest-neighbor