Skip to main content
Log in

Best case lower bounds for Heapsort

Untere Schranken von Heapsort für den besten Fall

  • Published:
Computing Aims and scope Submit manuscript

Abstract

The performance of Heapsort algorithms on arbitrary input is examined. It is proved that ann lognO(n) lower bound on the number of comparisons holds for a set of Heapsort algorithms, including Williams-Floyd's algorithm, Carlsson's bottom-up linear or binary insertion algorithm, and all up-down algorithms, on any input.

Zusammenfassung

Dieser Artikel untersucht die Komplexität von Heapsort Algorithmen für willkürliche Eingaben. Es wird bewiesen, daß für die Anzahl der Vergleiche auf jeden Fall eine untere Schranke vom Typ nlogn-O(n) gilt, und zwar in einr Klasse von Heapsort Algorithmen, die den Williams-Floyd-Algorithmus, den Carlsson-Algorithmus mit linearem oder binärem Einfügen und alle up-down Algorithmen enthält.

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

  • [Ca87a] Carlsson, S.: Average-case results on heapsort. BIT27, 2 (1987).

    Google Scholar 

  • [Ca87b] Carlsson, S.: A variant of heapsort with almost optimal number of comparisons. Information Processing Letters24, 4 (1987).

    Google Scholar 

  • [Ca91] Carlsson, S.: An optimal algorithm for deleting the root of a heap. Information Processing Letters37, 2 (1991).

    Google Scholar 

  • [Do84] Doberkat, E.: An average case analysis of Floyd's algorithm to construct heaps. Information and Control61, 2 (1984).

    Google Scholar 

  • [DW91] Ding, Y., Weiss, M.: On heapsort algorithms that are good in both worst-case and averagecase, Tech. Report, School of Computer Science, Florida International University, Feb. 1991.

  • [Fl64] Floyd, R.: Algorithm 245: Treesort. Comm. ACM7, 12 (1964).

    Google Scholar 

  • [Fr88] Frieze, A.: On the random construction of heaps. Information Processing Letters27, 2 (1988).

    Google Scholar 

  • [FSU91] Fleischer, R., Sinha, B., Uhrig, C.: A lower bound for the worst case of bottom-up-heapsort, personal communication, Jan. 1991.

  • [GM86] Gonnet, G., Munro, J.: Heaps on heaps. SIAM J. Comput.15 4 (1986).

    Google Scholar 

  • [Ha91] Hayward, R.: Average case analysis of heap building by repeated insertion. J. Algorithms12, 1 (1991).

    Google Scholar 

  • [Kn73] Knuth, D.: The art of computer programming, Vol. 3. Reading, MA: Addison-Wesley 1973.

    Google Scholar 

  • [MR89] McDiarmid, C., Reed, B.: Building heaps fast. J. Algorithms10, 3 (1989).

    Google Scholar 

  • [PS75] Porter, T., Simon, I.: Random insertion into a priority queue structure. IEEE Trans. Software EngineeringSE-1, 3 (1975).

    Google Scholar 

  • [We90] Wegener, I.: Bottom-up-heapsort, a new variant of heapsort beating on avergage quicksort (ifn is not very small). Berlin, Heidelberg, New York: Springer 1990 (MFCS'90, Lecture Notes in Computer Science 452).

    Google Scholar 

  • [Wi64] Williams, J.: Algorithm 232: Heapsort. Comm. ACM7, 6 (1964).

    Google Scholar 

  • [XY90] Xunrang, G., Yuzhang, Z.: A new heapsort algorithm and the analysis of its complexity. The Computer Journal33, 3 (1990).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Ding, Y., Weiss, M.A. Best case lower bounds for Heapsort. Computing 49, 1–9 (1992). https://doi.org/10.1007/BF02238646

Download citation

  • Received:

  • Issue Date:

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

AMS Subject Classifications

Key words

Navigation