HEAPS WITH BITS

Citation
S. Carlsson et al., HEAPS WITH BITS, Theoretical computer science, 164(1-2), 1996, pp. 1-12
Citations number
22
Categorie Soggetti
Computer Sciences","Computer Science Theory & Methods
ISSN journal
03043975
Volume
164
Issue
1-2
Year of publication
1996
Pages
1 - 12
Database
ISI
SICI code
0304-3975(1996)164:1-2<1:HWB>2.0.ZU;2-D
Abstract
In this paper, we show how to improve the complexity of heap operation s and heapsort using extra bits. We first study the parallel complexit y of implementing priority queue operations on a heap. The trade-off b etween the number of extra bits used, the number of processors availab le, and the parallel time complexity is derived. While inserting a new element into a heap in parallel can be done as fast as parallel searc hing 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 m odels 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 impro ved heapsort algorithm. Our variation of heapsort is faster than Wegen er's heapsort and requires less extra space.