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

计算机工程 ›› 2009, Vol. 35 ›› Issue (10): 40-43. doi: 10.3969/j.issn.1000-3428.2009.10.013

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

快速动态优先搜索树的实现及其应用

黄惠萍,陆伟成,肖林甫,赵文庆   

  1. (复旦大学专用集成电路与系统国家重点实验室,上海 201203)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-05-20 发布日期:2009-05-20

Realization and Application of Fast Dynamic Priority Search Tree

HUANG Hui-ping, LUK Wai-shing, XIAO Lin-fu, ZHAO Wen-qing   

  1. (State Key Lab of ASIC & System, Fudan University, Shanghai 201203)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-05-20 Published:2009-05-20

摘要: 对形如([x1: x2], [-∞: y])的二维查询问题,提出一种快速的、易于实现的动态优先搜索树数据结构及其相关算法,采用只在叶节点存储数据的结构,以及在常数时间内实现旋转操作的算法。设n为数据点的个数,k为满足搜索条件的解的个数,则该动态搜索树空间复杂度为O(n),插入、删除操作的时间复杂度为O(logn),搜索复杂度为O(logn+k)。

关键词: 动态优先搜索树, 区域树,

Abstract: A fast Dynamic Priority Search Tree(DPST) is proposed for 2-D range query in form of ([x1: x2], [-∞: y]). The proposed DPST stores input data only in its leaf nodes and performs tree rotation in constant time. Let n be the total number of leaf nodes in the tree, and k be the number of solutions in query. The tree requires takes O(n) storage space and takes O(logn) for insertion and deletion, and O(logn+k) time for query.

Key words: Dynamic Priority Search Tree(DPST), range tree, heap

中图分类号: