R树与R树.pptVIP

  • 8
  • 0
  • 约2.86千字
  • 约 21页
  • 2017-06-11 发布于北京
  • 举报
R树与R+树 Reference Issue R-TREES. A DYNAMIC INDEX STRUCTURE FOR SPATIAL SEARCHING Antomn Guttman University of California Berkeley Abstract In order to handle spatial data efficiently, as required in computer aided design and geo-data applications, a database system needs an index mechanism that will help it retrieve data items quickly according to their spatial locations However, traditional indexing methods are not well suited to data objects of non-zero size located in multi-dimensional spaces In this paper we describe a dynarmc index structure called an R-tree which meets this need, and give algorithms for searching and update it. We present the results of a series of tests which indicate that the structure performs well, and conclude that it is useful for current database systems in spatial applications Chracteristic(1) 假设M是适合于一个结点的最大条目数,m≤M/2是特定最小条目数 每一个叶子结点都包含m至M个索引记录,除了根结点 对于叶子结点的每一条索引记录(I, tuple-identifier),I是数组所表示的n维数据对象的最小外接矩形 每一个非叶子结点都有m至M个孩子结点,除了根结点 Chracteristic(2) 每一个非叶子结点的条目(I, child-pointer),I是包含所有孩子结点外接矩形的最小矩形 根结点至少有两个孩子结点,除非它是叶子结点 所有叶子结点都在同一层 平衡树的概念 中间节点条目(I, child-pointer) 叶子节点条目(I, tuple -identifier) 算法简介(1) R树的插入与许多其他树的操作一样,可以归纳为一个递归过程。首先从根结点出发,按照一定的标准,选择其中一个孩子插入新的空间要素,直到叶子结点。当新的空间要素的插入使叶子结点中的单元个数超过M时,需要进行结点的分裂操作。分裂操作是将溢出的结点按照一定的规则分为若干部分。在其父结点删除原来对应的单元,并加入由分裂产生的相应的单元。如果这样引起父结点的溢出,则继续对父结点进行分裂操作。它保证了空间要素插入后R树仍能保持平衡。 算法简介(2) 从R树中删除一个空间要素与插入类似,首先从R树中查找到记录该空间要素所在的叶子结点,这就是R树的查找。查找到该空间要素所在的叶子结点后,删除其对应的单元。如果删除后该叶子结点单元个数少于m,需要进行R树的压缩操作,将单元数过少的结点删除。最后将因进行结点调整而被删除的空间要素重新插入到R树中。这就是R树的压缩操作,它使得R树的每个结点单元数不低于m这个下限,从而保证了R树结点的平衡和利用率。 Algorithm Implement(1) Search(搜索): Algorithm Implement(2) Insertion(插入): Algorithm Implement(3) Algorithm Implement(4) ChooseLeaf(选择叶子节点): Algorithm Implement(5) AdjustTree(调整): Algorithm Implement(6) AdjustTree(调整): Algorithm Implement(7) Deletion(删除):

文档评论(0)

1亿VIP精品文档

相关文档