Skip to main content
Log in

A note on constructing min-max heaps

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

Abstract

In this paper we show that to construct an implicit, double-ended priority queue organized as a min-max heap, 17/9n = 1.88 ...n comparisons suffice in the worst case (neglectng lower order terms). The algorithm improves the previously best known upper bound of 2.15 ...n comparisons.

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. M. D. Atkinson, J.-R. Sack, N. Santoro, and Th. Strothotte:Min-max heaps and generalized priority queues. Communications of the ACM, 29 (10): 996–1000, October 1986.

    Google Scholar 

  2. S. Carlsson:Average-case analysis of operation on heaps. BIT, 27 (1): 2–17, 1987.

    Google Scholar 

  3. S. Carlsson:The deap-a double-ended heap to implement double-ended priority queues. Information Processing Letters, 26 (1): 33–36, September 1987.

    Google Scholar 

  4. S. Carlsson:Heaps. PhD thesis, Department of Computer Science, Lund University, November 1986.

  5. S. Carlsson, J. Chen, and Th. Strothotte:A note on the construction of the data structure ‘deap’. Information Processing Letters, 1989. (to appear).

  6. E. Doberkat:On deleting the root of a heap. Acta Informatica, 17: 245–265, 1982.

    Google Scholar 

  7. L. Draws, P. Eriksson, E. Forslund, L. Höglund, S. Vallner, and Th. Strothotte:Two new algorithms for constructing min-max heaps. In A. Lingas and R. Karlsson, editors,1st Scandinavian Workshop on Algorithm Theory, Lecture Notes in Computer Science, 318: 43–50, Springer-Verlag, Berlin-Heidelberg-New York, 1988.

    Google Scholar 

  8. R. W. Floyd:Algorithm 245 — treesort 3. Communications of the ACM, 7 (12): 701, 1964.

    Google Scholar 

  9. A. M. Frieze:On the random construction of heaps. Information Processing Letters, 27 (2): 103–109, February 1988.

    Google Scholar 

  10. G. H. Gonnet:Handbook of Algorithms and Data Structures. Addison-Wesley, Reading, MA., 1984.

    Google Scholar 

  11. G. H. Gonnet and J. I. Munro:Heaps on heaps. SIAM Journal on Computing, 15 (4): 964–971, November 1986.

    Google Scholar 

  12. A. Hasham and J.-R. Sack:Bounds for min-max heaps. BIT 27 (12): 315–323, 1987.

    Google Scholar 

  13. Donald E. Knuth:The Art of Computer Programming. Volume 3, Addison-Wesley, Reading, MA, 1973.

    Google Scholar 

  14. C. J. H. McDiarmid and B. A. Reed:Building Heaps Fast. Technical Report, Oxford University, 1987.

  15. J.-R. Sack and Th. Strothotte:An algorithm for merging heaps. Acta Informatica, 22: 171–185, 1985.

    Google Scholar 

  16. Th. Strothotte and J.-R. Sack:Heaps in heaps. Congressus Numerantium, 49: 223–235, 1985.

    Google Scholar 

  17. J. W. J. Williams:Algorithm 232. Communications of the ACM, 7 (6): 347–348, 1964.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

Some of the ideas given in this paper were presented in a preliminary form at the 1st Scandinavian Workshop on Algorithm Theory, Halmstad (July, 1988) [7].

Rights and permissions

Reprints and permissions

About this article

Cite this article

Strothotte, T., Eriksson, P. & Vallner, S. A note on constructing min-max heaps. BIT 29, 251–256 (1989). https://doi.org/10.1007/BF01952680

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

CR categories

Keywords

Navigation