Skip to main content

Generalized heapsort

  • Communications
  • Conference paper
  • First Online:
Mathematical Foundations of Computer Science 1980 (MFCS 1980)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 88))

Abstract

The efficiency and mathematical approach of the Generalized Heapsort have been described. If an appropriate value of p is chosen, which in most cases is 4≤p≤6, the sorting time can be minimized.

The Generalized Heapsort, however, does not change the order of computing complexity of the Heapsort, which remains O(nlogn).

The algorithm of the Generalized Heapsort is not particularly complicated. It requires only a few modifications to the original algorithm. It is the fastest algorithm yet reported which does not require extra memory space. The Quicksort is faster on average than the Generalized Heapsort, but it has several demerits which have mentioned above. In general, the Heapsort, not only the Basic Heapsort but also the Generalized Heapsort shows a very stable response to any data condition, even data are sequentially or reversely ordered.

The numbers of key comparisons and record moves in the worst case have been described mathematically. However, the author has not yet succeeded in finding their mathematical averages. As stated above, the differences between the averages and maximum values are very small. Therefore, for examination or for comparison with other sorting algorithms, the maximum values are fairly useful.

The Generalized Heapsort algorithm is effective when data volumes are very large and also the ratio of comparison time to move time is large. However, if the move time is very much longer than the comparison time, another sorting algorithms, for instance the “key sort” should be used.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

6. References

  1. Williams, J.W.J.: Algorithm 232: Heapsort. Comm. ACM, Vol. 7, No. 6, pp.347–348(1964).

    Google Scholar 

  2. Floyd, R.W.: Algorithm 245: Treesort 3. Comm. ACM, Vol.7, No.12, p.701(1964).

    Google Scholar 

  3. Aho, A.V., Hopcroft, J.E. and Ullman, J.D.: The Design and Analysis of Computer Algorithms. Addison-Wesley Publishing Company, pp.87–92(1974).

    Google Scholar 

  4. Knuth, D.E.: The Art of Computer Programming, Vol.3/ Sorting and Searching. Addison-Wesley Publishing Company, PP.145–147(1973).

    Google Scholar 

  5. Shell, D.L.: A High-Speed Sorting Procedure. Comm. ACM, Vol.2, No.7, PP.30–32(1959).

    Google Scholar 

  6. Sedgewick, R.: Implementing Quicksort Programs. Comm. ACM, Vol.21, No.10, PP.847–857(1978).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

P. Dembiński

Rights and permissions

Reprints and permissions

Copyright information

© 1980 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Okoma, S. (1980). Generalized heapsort. In: Dembiński, P. (eds) Mathematical Foundations of Computer Science 1980. MFCS 1980. Lecture Notes in Computer Science, vol 88. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0022523

Download citation

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

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-10027-0

  • Online ISBN: 978-3-540-38194-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics