摘要
本文利用下沉路径,上浮路径的概念在堆结构上分别给出了对具有几个元素的集合进行插入、删除一个元素的复杂度下界及其证明,结果为:插入一个元素最坏情况下至少需要 O(loglogn)次元素的比较;删除一个至少需要 O(logn)次元素的比较,与此同时,给出相应的最佳插入、删除算法.
The paper gives out the lower bound in inserting and deleting one element on the heapwhich is of n elements respectively and its identification by using the conceptions of descend-ing path and ascending path.The result is that it will spend at least O(loglog n)elementcomparisons in the worst case to insert one element into the heap,and it will spend at least O(log n)element comparisons to delete one element from the heap.Meanwhile,the best in-sert algorithm and delete algorithm are presented.
出处
《兰州大学学报(自然科学版)》
CAS
CSCD
北大核心
1992年第S1期12-16,共5页
Journal of Lanzhou University(Natural Sciences)
关键词
集合
插入、删除
下沉路径
上浮路径
最佳算法
复杂度下界
set
insert
delete
descending path
ascending path
optimum algorithm
complexity lower bound