Skip to main content
Log in

A generalized, one-way, stackless quicksort

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

Abstract

This note generalizes the one-way, stackless quicksort of Huang and Knuth to work for any type of sort key. It thus proves that quicksort can run with minimal space inO(N logN) average time.

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.

Institutional subscriptions

Similar content being viewed by others

References

  1. C. A. R. Hoare,Quicksort, The Computer Journal, 5 (1962), 10–15.

    Article  Google Scholar 

  2. Donald E. Knuth,The Art of Computer Programming, Volume 3:Sorting and Searching, Readings, Mass.: Addison-Wesley, 1975.

    Google Scholar 

  3. D. Motzkin,A stable quicksort, Softw.Pract. Exper. 11, 6 (June 1981), 607–611.

    Google Scholar 

  4. L. M. Wegner,Sorting a linked list with equal keys, Inf. Processing Lett., 15, 5 (Dec. 1982), 205–208.

    Article  Google Scholar 

  5. L. M. Wegner,Quicksort for equal keys, IEEE TC, 34, 4 (April 1985), 362–367.

    Google Scholar 

  6. Huang Bing-Chao and Donald E. Knuth,A one-way, stackless quicksort algorithm, BIT, 26 (1986), 127–130.

    MathSciNet  Google Scholar 

  7. J. Bentley,Programming pearls: How to sort, Comm. ACM, 27, 4 (April 1984), 287–291.

    Google Scholar 

  8. R. Sedgewick,Implementing quicksort programs, Comm. ACM, 21, 10 (Oct. 1978), 847–857 and 22, 6 (June 1979), 368.

    Article  Google Scholar 

  9. L. Trabb Pardo,Stable sorting and merging with optimal space and time bounds, SIAM J. Comput., 6, 2 (June 1977), 351–372.

    Article  Google Scholar 

  10. S. M. Merritt,An inverted taxonomy of sorting algorithms, Comm. ACM, 28, 1 (Jan. 1985), 96–99.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

On leave from FH Fulda, D-6400 Fulda (Germany).

Rights and permissions

Reprints and permissions

About this article

Cite this article

Wegner, L.M. A generalized, one-way, stackless quicksort. BIT 27, 44–48 (1987). https://doi.org/10.1007/BF01937353

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

AMS 68.E.05

Navigation