Abstract
We study parallel solutions to the problem of implementing priority queues and priority deques. It is known that data structures for the implementation (e.g., the heap, the minmax heap, and the deap) can be constructed in linear sequential time. In this paper, we design optimal Ω((log log n)2) time parallel algorithms with n/(log logn)2 processors for the constructions on the parallel comparison tree model. For building heaps in parallel, our algorithm improves the previous best result of Ω(log n) time with n/log n processors. For building min-max heaps and deaps, our algorithms are the first attempt to design parallel algorithms for constructing the data structures of the priority deque that are cost optimal.
This article was processed using the LATEX macro package with LMAMULT style
Preview
Unable to display preview. Download preview PDF.
References
A. V. Aho, J. E. Hopocroft, and J. D. Ullman: The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, MA, 1974.
M. Ajtai, J. Komlós, W. L. Steiger, and E. Szemerédi: Optimal parallel selection has complexity O(log log n). Journal of Computer and System Sciences 38 (1989), 125–133.
S. G. Akl: The Design and Analysis of Parallel Algorithms. Prentice-Hall International, Inc., 1989.
Y. Azar and N. Pippengar: Parallel selection. Discrete Applied Mathematics 27 (1990), 49–58.
M. D. Atkinson, J.-R. Sack, N. Santoro, and Th. Strothotte: Min-max heaps and generalized priority queues. Communications of the ACM 29 (1986), 996–1000.
B. Bollobás and I. Simon: Repeated random insertion into a priority queue. Journal of Algorithms 6 (1985), 466–477.
S. Carlsson: A new priority queue for parallel environments. Technical Report LU-CSTR:89-44. Department of Computer Science, Lund University, 1989.
S. Carlsson: Average-case results on heapsort. BIT 27 (1987), 2–17.
S. Carlsson: The deap — A double-ended heap to implement double-ended priority queues. Information Processing Letters 26 (1987), 33–36.
S. Carlsson and J. Chen: The Complexity of Heaps. To appear in: Third Annual ACM-SIAM Symposium on Discrete Algorithms (1992).
S. Carlsson, J. Chen, and Th. Strothotte: A note on the construction of the data structure “Deap”. Information Processing Letters 31 (1989), 315–317.
E. E. Doberkat: An average case analysis of Floyd's algorithm to construct heaps. Information and Control 61 (1984), 114–131.
R. W. Floyd: Algorithm 245 — Treesort 3. Communications of the ACM 7 (1964), p. 701.
G. H. Gonnet and J. I. Munro: Heaps on heaps. SIAM Journal on Computing 15 (1986), 964–971.
A. Hasham and J.-R. Sack: Bounds for min-max heaps. BIT 27 (1987), 315–323.
D. E. Knuth: The Art of Computer Programming. Vol. 3: Sorting and Searching. AddisonWesley, Reading, MA, 1973.
C. J. H. McDiarmid and B. A. Reed: Building heaps fast. Journal of Algorithms 10 (1989), 352–365.
T. Porter and I. Simon: Random insertion into a priority queue structure. IEEE Transactions on Software Engineering SE-1 (1975), 292–298.
N. S. V. Rao and W. Zhang: Building heaps in parallel. Information Processing Letters 37 (1991), 355–358.
R. Reischuk: Probabilistic parallel algorithms for sorting and selection. SIAM Journal on Computing 14 (1983), 396–409.
Y. Shiloach and U. Vishkin: Finding the maximum, merging, and sorting in a parallel computation model. Journal of Algorithms 2 (1981), 88–102.
Th. Strothotte, P. Eriksson, and S. Vallner: A note on constructing min-max heaps. BIT 29 (1989), 251–256.
L. G. Valiant: Parallelism in comparison problems. SIAM Journal on Computing 4 (1975), 348–355.
J. W. J. Williams: Algorithm 232: Heapsort. Communications of the ACM 7 (1964), 347–348.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1992 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Carlsson, S., Chen, J. (1992). Parallel complexity of heaps and min-max heaps. In: Simon, I. (eds) LATIN '92. LATIN 1992. Lecture Notes in Computer Science, vol 583. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0023822
Download citation
DOI: https://doi.org/10.1007/BFb0023822
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-55284-0
Online ISBN: 978-3-540-47012-0
eBook Packages: Springer Book Archive