Skip to main content

Heap Building Bounds

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3608))

Abstract

We consider the lower bound for building a heap in the worst case and the upper bound in the average case. We will prove that the supposedly fastest algorithm in the average case[2] does not attain its claimed bound and indeed is slower than that in [6]. We will then prove that the adversarial argument for the claimed best lower bound in the worst case[1] is also incorrect and the adversarial argument used yields a bound which is worse than that in [5] given by an information theory argument. Finally, we have proven a lower bound of 1.37n + o(n) for building a heap in the worst case.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Carlsson, S., Chen, J.: The complexity of heaps. In: Proceedings of the third annual ACM-SIAM symposium on Discrete algorithms, pp. 393–402. SIAM, Philadelphia (1992)

    Google Scholar 

  2. Carlsson, S., Chen, J.: Heap construction: Optimal in both worst and average cases? In: Algorithms and Computation, pp. 254–263. Springer, Heidelberg (1995)

    Chapter  Google Scholar 

  3. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Sten, C.: Introduction to Algorithms, 2nd edn. The MIT Press, McGraw-Hill Book Company (2001)

    Google Scholar 

  4. Floyd, R.W.: Algorithm 245: Treesort. Commun. ACM 7(12), 701 (1964)

    Article  Google Scholar 

  5. Gonnet, G.H., Munro, I.: Heaps on heaps. SIAM Journal of Computing 15(4), 964–971 (1986)

    Article  MATH  MathSciNet  Google Scholar 

  6. McDiarmid, C.J., Reed, B.A.: Building heaps fast. J. Algorithms 10(3), 352–365 (1989)

    Article  MATH  MathSciNet  Google Scholar 

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

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Li, Z., Reed, B.A. (2005). Heap Building Bounds. In: Dehne, F., López-Ortiz, A., Sack, JR. (eds) Algorithms and Data Structures. WADS 2005. Lecture Notes in Computer Science, vol 3608. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11534273_3

Download citation

  • DOI: https://doi.org/10.1007/11534273_3

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-28101-6

  • Online ISBN: 978-3-540-31711-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics