Description and analysis of an efficient priority queue representation
- 1 October 1978
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
Abstract
We present a new data-structure for representing priority queues, the pagoda. A detailed analysis shows that the pagoda provides a very efficient implementation of priority queues, where our measure of efficiency is the average run time of the various algorithms. It handles an arbitrary sequence of n primitive operations chosen from MIN, INSERT, UNION, EXTRACT and EXTRACTMIN in time o(n log n). The constant factors affecting these asymptotic run time are small enough to make the pagoda competitive with any other priority queue, including structures which cannot handle UNION or EXTRACT. The given algorithms process an arbitrary sequence of n operations MIN, INSERT and EXTRACT in linear average time O(n), and a sequence of n INSERT in linear worst case time O(n).Keywords
This publication has 4 references indexed in Scilit:
- A data structure for manipulating priority queuesCommunications of the ACM, 1978
- Rearrangements of the symmetric group and enumerative properties of the tangent and secant numbersMathematische Zeitschrift, 1974
- Nombres d'Euler et Permutations AlternantesPublished by Elsevier ,1973
- AlgorithmsCommunications of the ACM, 1964