Skip to main content

QuickHeapsort, an Efficient Mix of Classical Sorting Algorithms

  • Conference paper
  • First Online:
Book cover Algorithms and Complexity (CIAC 2000)

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

Included in the following conference series:

Abstract

We present a practically efficient algorithm for the internal sorting problem. Our algorithm works in-place and, on the average, has a running-time of O(n log n) in the length n of the input. More specifically, the algorithm performs n log n + 3n comparisons and n log n + 2.65n element moves on the average.

An experimental comparison of our proposed algorithm with the most efficient variants of Quicksort and Heapsort is carried out and its results are discussed.

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

Access this chapter

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

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. S. Carlsson, A variant of heapsort with almost optimal number of comparisons, Information Processing Letters, Vol. 24, pp. 247–250, 1987.

    Article  MATH  MathSciNet  Google Scholar 

  2. E.E. Doberkat, An average analysis of Floyd’s algorithm to construct heaps, Information and Control, Vol.61, pp.114–131, 1984.

    Article  MATH  MathSciNet  Google Scholar 

  3. B. Durian, Quicksort without a stack, Lect. Notes Comp. Sci. Vol. 233, pp.283–289, Proc. of MFCS 1986.

    Google Scholar 

  4. R.W. Floyd, Treesort 3 (alg. 245), Comm. of ACM, Vol. 7, p. 701,1964.

    Article  Google Scholar 

  5. G. Gonnet, R. Baeza-Yates, Handbook of algorithms and data structures, Addison-Wesley, Reading, MA, 1991.

    Google Scholar 

  6. G. Gonnet, J. Munro, Heaps on Heaps, Lect. Notes Comp. Sci. Vol. 140, Proc. of ICALP’82, 1982.

    Google Scholar 

  7. C.A.R. Hoare, Algorithm 63(partition) and algorithm 65(find), Comm. of ACM, Vol. 4(7), pp. 321–322, 1961.

    Article  Google Scholar 

  8. M. Hofri, Analysis of Algorithms: Computational Methods & Mathematical Tools, Oxford University Press, New York, 1995.

    MATH  Google Scholar 

  9. J. Katajainen, The Ultimate Heapsort, DIKU Report 96/42, Department of Computer Science, Univ. of Copenhagen, 1996.

    Google Scholar 

  10. J. Katajainen, T. Pasanen, J. Tehuola, Top-down not-up heapsort, Proc. of The Algorithm Day in Copenhagen, Dept. of Comp. Sci., University of Copenhagen, pp. 7–9, 1997.

    Google Scholar 

  11. D.E. Knuth, The Art of Computer Programming, Volume 3: Sorting and Searching, Addison-Wesley, 1973.

    Google Scholar 

  12. LEDA, Library of Efficient Data structures and Algorithms, http://www.mpi-sb.mpg.de/LEDA/leda.html.

  13. C.J. McDiarmid, B.A. Reed, Building Heaps Fast, Journal of algorithms, Vol. 10, pp. 352–365, 1989.

    Article  MATH  MathSciNet  Google Scholar 

  14. B.M.E. Moret, H.D. Shapiro, Algorithms from P to NP, Volume 1: Design and Efficiency, The Benjamin Cummings Publishing Company, 1990.

    Google Scholar 

  15. T. Pasanen, Elementary average case analysis of Floyd’s algorithms to construct heaps, TUCS Technical Report N. 64, 1996.

    Google Scholar 

  16. L. Rosaz, Improving Katajainen’s Ultimate Heapsort, Technical Report N.1115, Laboratoire de Recherche en Informatique, Université de Paris Sud, Orsay, 1997.

    Google Scholar 

  17. R. Sedgewick, Quicksort, Garland Publishing, New York, 1980.

    Google Scholar 

  18. R. Sedgewick, Implementing quicksort programs, Comm. of ACM 21(10) pp.847–857, 1978.

    Article  MATH  Google Scholar 

  19. I. Wegener, Bottom-Up-Heapsort, a new variant of Heapsort beating, on an average, Quicksort (if n is not very small), Theorical Comp. Sci., Vol. 118, pp. 81–98, 1993.

    Article  MATH  MathSciNet  Google Scholar 

  20. I. Wegener, The worst case complexity of McDiarmid and Reed’s variant of Bottom-Up heap sort is less than nlogn+1.1n, Information and Computation, Vol. 97, pp. 86–96, 1992.

    Article  MATH  MathSciNet  Google Scholar 

  21. J.W. Williams, Heapsort (alg.232), Comm. of ACM, Vol. 7, pp. 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

© 2000 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Cantone, D., Cincotti, G. (2000). QuickHeapsort, an Efficient Mix of Classical Sorting Algorithms. In: Bongiovanni, G., Petreschi, R., Gambosi, G. (eds) Algorithms and Complexity. CIAC 2000. Lecture Notes in Computer Science, vol 1767. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46521-9_13

Download citation

  • DOI: https://doi.org/10.1007/3-540-46521-9_13

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

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

  • Online ISBN: 978-3-540-46521-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics