Skip to main content

Fallstudie: Komplexitätsanalyse

  • Conference paper
Mathematik für Informatiker I

Part of the book series: Informatik-Fachberichte ((INFORMATIK,volume 35))

  • 49 Accesses

Zusammenfassung

Das Bubble-Sort-Programm auf S. 98 braucht bei einer Eingabefolge der Länge n insgesamt ${1\over2}$.n. (n-1) Schritte (siehe S.95). Es hat im wesentlichenquadratische Zeitkomplexität. Eine naheliegende Idee zur Verbesserungdes Verfahrens ist folgende:

Wenn wir die Prozedur Maximum so gestalten, daß wir uns die Stelle t merken, wo wir beim Vergleich benachbarter Elemente das letzte Mal eine Vertauschung vornehmen mußten, dann können wir bei einem Aufruf von Maximum den rechten sortierten Teil allenfalls gleich um mehr als ein Element verlängern. Insgesamt kommen wir dann allenfalls mit weniger Aufrufen der Prozedur Maximum aus.

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 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

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.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1980 Springer-Verlag Berlin · Heidelberg

About this paper

Cite this paper

Buchberger, B., Lichtenberger, F. (1980). Fallstudie: Komplexitätsanalyse. In: Mathematik für Informatiker I. Informatik-Fachberichte, vol 35. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-96602-6_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-96602-6_6

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-96603-3

  • Online ISBN: 978-3-642-96602-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics