arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1303.5481cs.DS
收藏

根树和根表上几类查询和更新的新O(H(N)+ N/H(N))算法

Novel O(H(N)+N/H(N)) Algorithmic Techniques for Several Types of Queries and Updates on Rooted Trees and Lists

Mugurel Ionut Andreica

摘要:

在本文中,我们提出了一种新的算法技术与O(H(N)+N/H(N))时间复杂度执行几种类型的查询和更新一般根树,二叉搜索树和大小为N的列表。对于有根树,我们引入了一种新的压缩超节点树表示,可用于有效地解决广泛的应用。对于二叉查找树,我们讨论的想法,全球重建整个树在一个完全平衡的方式时,树的高度超过了一个方便选择的函数的值的树节点的数量。最后介绍了支持连接、拆分和多种查询的H-表数据结构。注意,当选择H(N)=sqrt(N)时,我们得到O(H(N)+N/H(N))=O(sqrt(N))。

英文摘要:

In this paper we present novel algorithmic techniques with a O(H(N)+N/H(N)) time complexity for performing several types of queries and updates on general rooted trees, binary search trees and lists of size N. For rooted trees we introduce a new compressed super-node tree representation which can be used for efficiently addressing a wide range of applications. For binary search trees we discuss the idea of globally rebuilding the entire tree in a fully balanced manner whenever the height of the tree exceeds the value of a conveniently chosen function of the number of tree nodes. In the end of the paper we introduce the H-list data structure which supports concatenation, split and several types of queries. Note that when choosing H(N)=sqrt(N) we obtain O(H(N)+N/H(N))=O(sqrt(N)).

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

↑