Skip to main content

Practical adaptive sorting

  • Algorithms And Complexity
  • Conference paper
  • First Online:
Advances in Computing and Information — ICCI '91 (ICCI 1991)

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

Included in the following conference series:

  • 145 Accesses

Abstract

We present a general constructive principle for the design of adaptive sorting algorithms that enables us to focus attention on the combinatorial properties of measures of presortedness rather than on the combinatorial properties of sorting algorithms. Using it, we obtain a practical adaptive sorting algorithm, optimal with respect to five important measures of presortedness and smoothly adaptive from O(n) to O(n log n) time for other common measures. Moreover, we extend the proof techniques to analyze an adaptive variant of Quicksort; previous claims were based only on simulation results.

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.

Similar content being viewed by others

References

  1. C.R. Cook and D.J. Kim. Best sorting algorithms for nearly sorted lists. Communications of the ACM, 23:620–624, 1980.

    Article  Google Scholar 

  2. E.W. Dijkstra. Smoothsort, an alternative to sorting in situ. Science of Computer Programming, 1:223–233, 1982.

    Google Scholar 

  3. P.G. Dromey. Exploiting partial order with Quicksort. Software — Practice and Experience, 14(6):509–518, 1984.

    Google Scholar 

  4. V. Estivill-Castro and D. Wood. A generic adaptive sorting algorithm. Computer Journal. To appear.

    Google Scholar 

  5. V. Estivill-Castro and D. Wood. A new measure of presortedness. Information and Computation, 83:111–119, 1989.

    Article  Google Scholar 

  6. J. D. Harris. Sorting unsorted and partially sorted lists using the natural merge sort. Software — Practice and Experience, 11:1339–1340, 1981.

    Google Scholar 

  7. D.E. Knuth. The Art of Computer Programming, Vol.3: Sorting and Searching. Addison-Wesley Publishing Co., Reading, Mass., 1973.

    Google Scholar 

  8. C. Levcopoulos and O. Petersson. Heapsort — adapted for presorted files. In F. Dehne, J.R. Sack, and N. Santoro, editors, Proceedings of the Workshop on Algorithms and Data Structures, pages 499–509. Springer-Verlag Lecture Notes in Computer Science 382, 1989.

    Google Scholar 

  9. C. Levcopoulos and O. Petersson. Splitsort—an adaptive sorting algorithm. Technical report, Department of Computer Science, Lund University, 1989.

    Google Scholar 

  10. H. Mannila. Measures of presortedness and optimal sorting algorithms. IEEE Transactions on Computers, C-34:318–325, 1985.

    Google Scholar 

  11. K. Mehlhorn. Data Structures and Algorithms, Vol 1: Sorting and Searching. EATCS Monographs on Theoretical Computer Science. Springer-Verlag, Berlin/Heidelberg, 1984.

    Google Scholar 

  12. S.S. Skiena. Encroaching lists as a measure of presortedness. BIT, 28:755–784, 1988.

    Google Scholar 

  13. R.L. Wainwright. A class of sorting algorithms based on Quicksort. Communications of the ACM, 28:396–402, 85.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Frank Dehne Frantisek Fiala Waldemar W. Koczkodaj

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Estivill-Castro, V., Wood, D. (1991). Practical adaptive sorting. In: Dehne, F., Fiala, F., Koczkodaj, W.W. (eds) Advances in Computing and Information — ICCI '91. ICCI 1991. Lecture Notes in Computer Science, vol 497. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-54029-6_153

Download citation

  • DOI: https://doi.org/10.1007/3-540-54029-6_153

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-54029-8

  • Online ISBN: 978-3-540-47359-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics