共 50 条
Two-tier relaxed heaps
被引:12
|作者:
Elmasry, Amr
[2
]
Jensen, Claus
[1
]
Katajainen, Jyrki
[1
]
机构:
[1] Univ Copenhagen, Dept Comp, DK-2100 Copenhagen E, Denmark
[2] Univ Alexandria, Dept Comp Engn & Syst, Alexandria, Egypt
关键词:
D O I:
10.1007/s00236-008-0070-7
中图分类号:
TP [自动化技术、计算机技术];
学科分类号:
0812 ;
摘要:
We introduce a data structure which provides efficient heap operations with respect to the number of element comparisons performed. Let n denote the size of the heap being manipulated. Our data structure guarantees the worst-case cost of O(1) for finding the minimum, inserting an element, extracting an (unspecified) element, and replacing an element with a smaller element; and the worst-case cost of O(lg n) with at most lg n + 3 lg lg n + O(1) element comparisons for deleting an element. We thereby improve the comparison complexity of heap operations known for run-relaxed heaps and other worst-case efficient heaps. Furthermore, our data structure supports melding of two heaps of size m and n at the worst-case cost of O(min {lg m, lg n}).
引用
收藏
页码:193 / 210
页数:18
相关论文