Skip to main content

Rekursion

  • Chapter
  • First Online:
Vorkurs Informatik

Zusammenfassung

Rekursion ermöglicht es, Algorithmen für viele Probleme besonders kurz und elegant zu formulieren, indem der Algorithmus, angewendet auf reduzierte Problemversionen, sich wieder selbst verwendet. Das Kapitel führt entsprechend in das Prinzip der Rekursion anhand eines Algorithmus zum Sortieren einer Folge von Zahlen, dem Sortieren durch Mischen, ein. Zudem wird vermittelt, wie dieser Algorithmus als Java-Programm unter Verwendung von Funktionen realisiert werden kann. Dem Sortieren durch Mischen liegt das allgemeine Prinzip des „Divide and Conquer“ zugrunde, welches ebenfalls vorgestellt wird. Algorithmen, die diesem Prinzip folgen, lassen sich häufig in natürlicher Weise rekursiv formulieren.

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

Access this chapter

eBook
USD 24.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

Corresponding author

Correspondence to Heinrich Müller .

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer Fachmedien Wiesbaden GmbH

About this chapter

Cite this chapter

Müller, H., Weichert, F. (2017). Rekursion. In: Vorkurs Informatik. Springer Vieweg, Wiesbaden. https://doi.org/10.1007/978-3-658-16141-5_7

Download citation

Publish with us

Policies and ethics