A MERGEABLE DOUBLE-ENDED PRIORITY QUEUE

被引:8
|
作者
OLARIU, S
OVERSTREET, CM
WEN, Z
机构
[1] Old Dominion Univ, Norfolk, VA
来源
COMPUTER JOURNAL | 1991年 / 34卷 / 05期
关键词
D O I
10.1093/comjnl/34.5.423
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
An implementation of a double-ended priority queue is discussed. This data structure referred to as min-max-pair heap can be built in linear time; the operations Delete-min, Delete-max and Insert take O(log n) time, while Find-min and Find-max run in O(1) time. In contrast to the min-max heaps, it is shown that two min-max-pair heaps can be merged in sublinear time. More precisely, two min-max-pair heaps of sizes n and k can be merged in time O(log (n/k) * log k).
引用
收藏
页码:423 / 427
页数:5
相关论文
共 50 条