Skip to main content
Log in

The amortized complexity of Henriksen's algorithm

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

Henriksen's algorithm is a priority queue implementation that has been proposed for the event list found in discrete event simulations. It offers several practical advantages over heaps and tree structures.

Although individual insertions ofO(n) complexity can easily be demonstrated to exist, the “self-adjusting” nature of the data structure seems to ensure that these will be rare. For this reason, a better measure of total running time is theamortized complexity: the worst case over a sequence of operations, rather than for a single operation.

We show that Henriksen's algorithm has an amortized complexity ofΘ(n 1/2) per insertion,O(1) per extract_min operation, andO(logn) for isolated deletions.

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. G. H. Gonnet,Heaps applied to event driven mechanisms. Comm. ACM 19 (July 1976) 417–418.

    Google Scholar 

  2. J. O. Henriksen,An improved events list algorithm. Proc. Winter Simulation Conf. December 1977, 547–557.

  3. J. O. Henriksen,Event list management — a tutorial. Proc. Winter Simulation Conf. 1983, 543–551.

  4. Arne Jonassen and Ole-Johan Dahl,Analysis of an algorithm for priority queue administration. BIT 15 (1975) 409–422.

    Google Scholar 

  5. D. W. Jones,An empirical comparison of priority-queue and event-set implementations. CACM 29 (April 1986) 300–311.

    Google Scholar 

  6. J. H. Kingston,Analysis of algorithms for the simulation event list. Ph.D. thesis, Basser Dept. of Computer Science, University of Sydney (July 1984).

  7. J. H. Kingston,Analysis of tree algorithms for the simulation event list. Acta Informatica 22 (1985) 15–33.

    Google Scholar 

  8. J. H. Kingston,Analysis of Henriksen's algorithm for the simulation event set. SIAM J. Comput., to appear.

  9. W. M. McCormack and R. G. Sargent,Analysis of future event set algorithms for discrete event simulation. Comm. ACM 24 (December 1981) 801–812.

    Google Scholar 

  10. D. D. Sleator and R. E. Tarjan,Self-adjusting heaps. SIAM J. Comput., to appear.

  11. R. E. Tarjan,Amortized computational complexity. SIAM J. Alg. Disc. Math., to appear.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Kingston, J.H. The amortized complexity of Henriksen's algorithm. BIT 26, 156–163 (1986). https://doi.org/10.1007/BF01933741

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

CR categories

Navigation