计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (29): 143-145.

• 数据库、信号与信息处理 • 上一篇    下一篇

平面线段集最近邻查询算法

刘兴芳,刘润涛   

  1. 哈尔滨理工大学 应用科学学院,哈尔滨 150080
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-10-11 发布日期:2011-10-11

Algorithm of nearest neighbor query of line segment set

LIU Xingfang,LIU Runtao   

  1. College of Applied Sciences,Harbin University of Science and Technology,Harbin 150080,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-10-11 Published:2011-10-11

摘要: 针对基于R-树的空间索引结构存在的节点覆盖冗余,兄弟节点之间的交叠问题,提出一种新的空间索引结构即RP-树。通过最适合划分函数和数据矩形的有序关系来对空间数据进行划分,使得该树的高度尽可能低,节点交叠较小。以RP-树为平面线段集的索引结构,利用线段集的相关定理和筛选规则,给出了一个求解平线段集最近邻的新查询算法,该算法不仅易于理解,且执行效率较高。

关键词: 线段集, RP-树, 空间索引, 最近邻

Abstract: Aiming at the problem of the node covering redundancy and the overlap between brother nodes in R-tree spatial index structure,a new index structure which is called RP-tree is proposed.Spatial data is partitioned through the most suitable function and the ordered data rectangular,therefore the height of the tree becomes as low as possible and nodes overlap smaller.To RP-tree index structure,using screening rules and the relevant line segment set theorem,a new algorithm of nearest neighbor query of line segment set is given,which is easy to understand,and is implemented efficiently.

Key words: line segment set, RP-tree, spatial index, nearest neighbor