Skip to main content
Log in

Continuous models that are equivalent to randomness for the analysis of many sorting algorithms

Zur diskreten Gleichverteilung äquivalente stetige Modelle für die Analyse von Sortieralgorithmen

  • Published:
Computing Aims and scope Submit manuscript

Abstract

It is shown that a large class of continuous models for the average case analysis of many sorting algorithms (including quicksort, Shell's sort, heapsort insertion sort) will display the same expected behavior with respect to interchanges and comparisons. This is done by comparing these models with the discrete model in which every permutation has the same probability. Applications to priority queues and to straight insertion sort are given.

Zusammenfassung

Es wird gezeigt, daß eine große Klasse von stetigen Modellen für die Analyse des durchschnittlichen Verhaltens vieler Sortieralgorithmen (unter anderen: Quicksort, Shellsort, Heapsort, Insertion-sort) im Hinblick auf Austausch- und Vergleichsoperationen das gleiche erwartete Verhalten ergibt. Dies geschieht durch Vergleich dieser Modelle mit dem diskreten Modell gleichwahrscheinlicher Permutationen. Anwendungen auf Prioritätswarteschlangen und auf Sortieren durch Einfügen werden gezeigt.

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

  1. Aho, A. V., Hopcroft, J. E., Ullman, J. D.: The design and analysis of computer algorithms. Reading, Mass.: Addison-Wesley 1974.

    Google Scholar 

  2. Beuerman, D.: Personal Communication.

  3. Brown, M. R.: Implementation and analysis of priority queue algorithms. SIAM J. Computing7, 298–319 (1978).

    Google Scholar 

  4. Doberkat, E. E.: Some observations on the average performance of heapsort. 21st IEEE FOCS, Syracuse, N.Y., 1980, pp. 229–237.

  5. Doberkat, E. E.: Inserting a new element into a heap. BIT21, 255–269 (1981).

    Google Scholar 

  6. Doberkat, E. E.: Deleting the root of a heap. Acta Informatica17, 244–265 (1982).

    Google Scholar 

  7. Feller, W.: An introduction to probability theory and its applications, Vol. 1 (2nd ed.). New York: J. Wiley 1957.

    Google Scholar 

  8. Feller, W.: An introduction to probability theory and its applications, Vol. II. New York: J. Wiley 1966.

    Google Scholar 

  9. Knuth, D. E.: The art of computer programming, Vol. I: fundamental algorithms (2nd ed.). Reading, Mass.: Addison-Wesley 1973.

    Google Scholar 

  10. Knuth, D. E.: The art of computer programming, Vol. III: sorting and searching. Reading, Mass.: Addison-Wesley 1973.

    Google Scholar 

  11. Knuth, D. E.: Deletions that preserve randomness IEEE Trans. Softw. Eng.SE-3, 351–359 (1977).

    Google Scholar 

  12. Porter, T., Simon, I.: Random insertion into a priority queue structure. IEEE Trans. Softw. Eng.SE-1, 292–298 (1975).

    Google Scholar 

  13. Press, S. J.: Applied multivariate analysis. New York: Holt, Rinehart and Winston 1972.

    Google Scholar 

  14. Ramshaw, L.H.: Formalizing the analysis of algorithms. Technical Report, STAN-CS-79-741, Computer Science Dept., Stanford University Stanford, 1979.

    Google Scholar 

  15. Rudin, W.: Real and complex analysis, 2nd ed. New York: McGraw-Hill 1974.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Doberkat, E.E. Continuous models that are equivalent to randomness for the analysis of many sorting algorithms. Computing 31, 11–31 (1983). https://doi.org/10.1007/BF02247934

Download citation

  • Received:

  • Issue Date:

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

AMS Subject Classifications

Key words

Navigation