Skip to main content
Log in

The efficiency of two indexed priority queue algorithms

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

Two priority queue algorithms, a linked linear sublist and ap-subtree algorithm, are analysed. Both of them use a search index that speeds up finding the correct sublist/subtree. In most cases the methods require a short processing time for the so-called HOLD-operation of the discrete event simulation. The relative power of the algorithms depends on the ratior of the total number of elements in the queue and the size of the search index. For large values ofr (≧16) thep-subtree algorithm is to be preferred. However, the more primitive data structure used by the sublist algorithm makes it possible to use a larger index leading to a smaller ratior.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. V. Aho, J. E. Hopcroft, and J. D. Ullman,The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, Mass., 1974.

    Google Scholar 

  2. M. R. Brown,Analysis of a Practical and Nearly-Optimal Priority Queue, Stanford University, STAN-CS-77-600 (1977).

  3. W. R. Franta and K. Maly,An Efficient Data Structure for the Simulation Event Set, Communications of the ACM, Vol 20 Nr 2. (1977).

  4. G. H. Gonnet,Heaps Applied to Event Driven Mechanisms, Communications of the ACM, Vol 19 Nr 7. (1976).

  5. D. B. Johnson,Priority Queues with Update and Finding Minimum Spanning Trees, Information Processing Letters, Vol 4 Nr 3. (1975).

  6. A. Jonassen and O.-J. Dahl,Analysis of an Algorithm for Priority Queue Administration, BIT Vol 15 Nr 4. (1975).

  7. A. Jonassen,The Stationary p-tree Forest, Stanford University, STAN-CS-76-573 (1976).

  8. D. E. Knuth,The Art of Computer Programming, Vol 3. Addison-Wesley, Mass., 1973.

    Google Scholar 

  9. S. E. Madnick and J. J. Donovan,Operating Systems, McGraw-Hill, Inc., 1974.

  10. O. Nevalainen and J. Teuhola,Priority Queue Administration by Sublist Index, (to appear in Computer Journal).

  11. O. Nevalainen and J. Teuhola,Efficiency of two indexed priority queue algorithms (Extended version), Univ. of Turku, Dept. of Comp. Sci., Rept. A7 (1977).

  12. J. G. Vaucher and P. Duval,A comparison of Simulation Event List Algorithms, Communications of the ACM, Vol 18 Nr 4. (1975).

  13. P. F. Wyman,Improved Event Scanning Mechanisms for Discrete Event Simulation, Communications of the ACM, Vol 18 Nr 6. (1975).

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Nevalainen, O., Teuhola, J. The efficiency of two indexed priority queue algorithms. BIT 18, 320–333 (1978). https://doi.org/10.1007/BF01930901

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01930901

Key words and Phrases

CR Categories

Navigation