arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.11313cs.DScs.CG
收藏

k-d树在最近邻搜索中的性能界限

Performance bounds for nearest neighbor search with k-d trees

University of Washington(华盛顿大学);University of California San Diego(加州大学圣地亚哥分校)

Marco Bazzani, Sanjoy Dasgupta

AI总结:

本文研究了k-d树在高维空间中最近邻搜索的性能界限,证明了全面搜索的运行时间和防御搜索的准确性界,并分析了不同数据分布下的搜索效率。

摘要:

k-d树是用于最近邻搜索最古老且最广泛使用的数据结构之一。它将欧几里得空间划分为轴对齐的矩形单元格。在k-d树中寻找查询点的最近邻有两种标准方法:防御搜索返回查询单元格中最接近的数据点,而全面搜索会搜索其他单元格以确保找到最近邻。这两种策略通常被认为在高维空间中表现不佳,但缺乏理论解释。本文证明了全面搜索的运行时间界和防御搜索的准确性界。在温和的分布假设下,当维度d至少为数据点数量的对数多项式时,防御搜索找到最近邻的概率不高于随机猜测,而全面搜索以高概率访问所有单元格。此外,本文还表明在均匀数据中,当每个单元格包含至少对数数量的数据点时,全面搜索访问的单元格数为2^{O(d)},而当每个单元格还包含至少2^{O(d log d)}个数据点时,防御搜索能返回最近邻。最后,对于任意绝对连续分布,本文上界了防御搜索返回点与查询点之间的期望距离。

英文摘要:

The $k$-d tree is one of the oldest and most widely used data structures for nearest neighbor search. It partitions Euclidean space into axis-aligned rectangular cells. There are two standard ways to find the nearest neighbor to a query in a $k$-d tree. Defeatist search returns the closest data point in the query's cell, while comprehensive search also searches other cells as needed to guarantee it finds the nearest neighbor. Both strategies are commonly believed to perform poorly in high dimensions, but there have been few theoretical results explaining this. We prove non-asymptotic bounds on the runtime of comprehensive search and the accuracy of defeatist search. Under mild distributional assumptions, when the dimension $d$ is at least polylogarithmic in the number of data points, defeatist search is no more likely to return the nearest neighbor than random guessing, and comprehensive search visits every cell with high probability. We also show that on uniform data, with high probability, comprehensive search visits at most $2^{\mathcal{O}(d)}$ cells when each cell contains at least logarithmically many data points, and defeatist search returns the nearest neighbor when each cell additionally contains at least $2^{\mathcal{O}(d \log d)}$ data points. Finally, for arbitrary absolutely continuous distributions, we upper bound the expected distance between the query and the point returned by defeatist search.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑