Heaps with bits

被引:6
作者
Carlsson, S
Chen, JS
Mattsson, C
机构
[1] UNIV LULEA, DEPT COMP SCI, S-97187 LULEA, SWEDEN
[2] QUAL LABS AB, S-22370 LUND, SWEDEN
关键词
BOTTOM-UP-HEAPSORT; BUILDING HEAPS; PARALLEL; VARIANT; OPERATIONS; AVERAGE;
D O I
10.1016/0304-3975(95)00152-2
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In this paper, we show how to improve the complexity of heap operations and heapsort using extra bits. We first study the parallel complexity of implementing priority queue operations on a heap. The trade-off between the number of extra bits used, the number of processors available, and the parallel time complexity is derived. While inserting a new element into a heap in parallel can be done as fast as parallel searching in a sorted list, we show how to delete the smallest element from a heap in constant time with a sublinear number of processors, and in sublogarithmic time with a sublogarithmic number of processors. The models of parallel computation used are the CREW PRAM and the CRCW PRAM. Our results improve those of previously known algorithms. Moreover, we study a variant, the fine-heap, of the traditional heap structure. A fast algorithm for constructing this new data structure is designed using an interesting technique, which is also used to develop an improved heapsort algorithm. Our variation of heapsort is faster than Wegener's heapsort and requires less extra space.
引用
收藏
页码:1 / 12
页数:12
相关论文
共 22 条