作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (12): 47-49. doi: 10.3969/j.issn.1000-3428.2008.12.016

• 软件技术与数据 • 上一篇    下一篇

基于Hilbert曲线的近似k-最近邻查询算法

徐红波1,郝忠孝1,2   

  1. (1. 哈尔滨理工大学计算机科学与技术学院,哈尔滨 150080;2. 哈尔滨工业大学计算机科学与技术学院,哈尔滨 150001)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-06-20 发布日期:2008-06-20

Approximate k-nearest Neighbors Query Algorithm Based on Hilbert Curve

XU Hong-bo1, HAO Zhong-xiao1,2   

  1. (1. College of Computer Science and Technology, Harbin University of Science and Technology, Harbin 150080; 2. College of Computer Science and Technology, Harbin Institute of Technology, Harbin 150001)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-06-20 Published:2008-06-20

摘要: 在低维空间中R树的查询效率较高,而在高维空间中其性能急剧恶化,降维成为解决问题的关键。利用Hilbert曲线的降维特性,该文提出基于Hilbert曲线近似k-最近邻查询算法AKNN,分析近似k-最近邻的误差。实验结果表明算法在执行时间上优于线性扫描和基于R树最短优先查询算法,近似解的质量较好。

关键词: k-最近邻, 降维, Hilbert曲线, 近似算法

Abstract: R-Tree can achieve better performance in low-dimensional space, but its performance suffers greatly in high-dimensional space. So the reduction of the dimensionality is the key to the problem. Hilbert curve can fill d dimensional space linearly, divide it into equal-size grids and map points lying in grids into linear space. Using the quality of reducing dimensions of Hilbert curve, the paper presents an approximate k-nearest neighbors query algorithm, and analyzes the quality of the approximate k-nearest neighbors. According to the test, its running time is shorter than brute-force method and the algorithm based on R-tree, and the quality of approximate k-nearest neighbors is better.

Key words: k-nearest neighbors, reduction of dimensionality, Hilbert curve, approximate algorithm

中图分类号: