Skip to main content

2022 | OriginalPaper | Buchkapitel

3. Kontextfreie Sprachen

verfasst von : André Schulz

Erschienen in: Grundlagen der Theoretischen Informatik

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Zusammenfassung

Wir haben im letzten Kapitel gesehen, dass bereits sehr einfache Sprachen wie L = {anbnn ≥ 0} nicht regulär sind. Das mag nicht überraschend sein, da wir mit begrenztem Speicher nicht das Wortproblem für diese Sprache entscheiden können. Dennoch steht wohl außer Frage, dass es sich bei L um keine komplizierte Sprache handelt. Wir können problemlos einen Algorithmus angeben, der das Wortproblem für L löst. Dafür müssen wir nur alle as am Anfang zusammenzählen und dann kontrollieren, ob nur bs folgen, und zwar genauso viele, wie wir as gezählt hatten. Diesen Algorithmus kann man nicht durch einen endlichen Automaten ausführen lassen, da in diesem Modell nicht unbeschränkt „gezählt“ werden kann. Wir werden in diesem Kapitel mit dem Kellerautomaten ein Berechnungsmodell vorstellen, in welchem wir den beschriebenen Algorithmus ausführen können. Unser Ziel ist es zudem, ein Modell zu finden, das möglichst nahe am endlichen Automaten bleibt. Die Sprachen, die ein Kellerautomat erkennt, nennen wir kontextfrei. Diese Sprachklasse ist eine sehr wichtige Sprachklasse mit vielen Anwendungen in der Informatik (zum Beispiel beim Entwurf von Programmiersprachen). Das Modell des Kellerautomaten ist ein nichtdeterministisches Modell. Daraus lässt sich aber auch eine deterministische Version ableiten. Wie wir sehen werden, sind diese Modell (anders als bei den endlichen Automaten) nicht gleich mächtig.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat M. P. Schützenberger. „On context-free languages and push-down automata“. In: Information and Control 6 (1963), S. 246–264. M. P. Schützenberger. „On context-free languages and push-down automata“. In: Information and Control 6 (1963), S. 246–264.
2.
Zurück zum Zitat A. G. Oetinger. „Automatic syntactic analysis and the pushdown store“. In: Structure of Language and Its Mathematical Aspects. Hrsg. von R. Jakobson. Bd. 12. Proceedings of Symposia in Applied Mathematics. AMS, 1961, S. 104–129. A. G. Oetinger. „Automatic syntactic analysis and the pushdown store“. In: Structure of Language and Its Mathematical Aspects. Hrsg. von R. Jakobson. Bd. 12. Proceedings of Symposia in Applied Mathematics. AMS, 1961, S. 104–129.
3.
Zurück zum Zitat N. Chomsky. „Three models for the description of language“. In: IRE Trans. Inf. Theory 2.3 (1956), S. 113–124. N. Chomsky. „Three models for the description of language“. In: IRE Trans. Inf. Theory 2.3 (1956), S. 113–124.
4.
Zurück zum Zitat N. Chomsky. Context-Free Grammars and Pushdown Storage. Quarterly Progress Report 65. Research Laboratory of Electronics (RLE) at the Massachusetts Institute of Technology (MIT), Apr 1962. N. Chomsky. Context-Free Grammars and Pushdown Storage. Quarterly Progress Report 65. Research Laboratory of Electronics (RLE) at the Massachusetts Institute of Technology (MIT), Apr 1962.
5.
Zurück zum Zitat R. J. Evey. „Application of pushdown-store machines“. In: Proceedings of the 1963 fall joint computer conference, AFIPS 1963 (Fall), Las Vegas, Nevada, USA, November 12–14, 1963 Hrsg. von J. D. Tupac. ACM, 1963, S. 215–227. R. J. Evey. „Application of pushdown-store machines“. In: Proceedings of the 1963 fall joint computer conference, AFIPS 1963 (Fall), Las Vegas, Nevada, USA, November 12–14, 1963 Hrsg. von J. D. Tupac. ACM, 1963, S. 215–227.
6.
Zurück zum Zitat N. Chomsky. „On Certain Formal Properties of Grammars“. In: Inf. Control. 2.2 (1959), S. 137–167. N. Chomsky. „On Certain Formal Properties of Grammars“. In: Inf. Control. 2.2 (1959), S. 137–167.
7.
Zurück zum Zitat J. E. Hopcroft und J. D. Ullman. Formal languages and their relation to automata. Addison-Wesley series in computer science and information processing. Addison-Wesley, 1969.MATH J. E. Hopcroft und J. D. Ullman. Formal languages and their relation to automata. Addison-Wesley series in computer science and information processing. Addison-Wesley, 1969.MATH
8.
Zurück zum Zitat D. H. Younger. „Recognition and Parsing of Context-Free Languages Recognition and parsiong of context-free languages in time n3“. In: Information and Control 10 (1967), S. 189–208. D. H. Younger. „Recognition and Parsing of Context-Free Languages Recognition and parsiong of context-free languages in time n3“. In: Information and Control 10 (1967), S. 189–208.
9.
Zurück zum Zitat T. Kasami. An efficient recognition and syntax-analysis algorithm for context-free languages Techn. Ber R-257. Coordinated Science Laboratory University of Illinois at Urbana-Champaign, März 1966. T. Kasami. An efficient recognition and syntax-analysis algorithm for context-free languages Techn. Ber R-257. Coordinated Science Laboratory University of Illinois at Urbana-Champaign, März 1966.
10.
Zurück zum Zitat Y Bar-Hillel, M. Perles und E. Shamir. „On formal properties of simple phrase structure grammars“. In: Z. Phonetik Sprachwiss. Kommunikat. 14 (1961), S. 143–172. Y Bar-Hillel, M. Perles und E. Shamir. „On formal properties of simple phrase structure grammars“. In: Z. Phonetik Sprachwiss. Kommunikat. 14 (1961), S. 143–172.
11.
Zurück zum Zitat P. C. Fischer. „On computability by certain classes of restricted Turing machines“. In: 4th Annual Symposium on Switching Circuit Theory and Logical Design, Chicago, Illinois, USA, October 28–30, 1963. IEEE Computer Society, 1963, S. 23–32. P. C. Fischer. „On computability by certain classes of restricted Turing machines“. In: 4th Annual Symposium on Switching Circuit Theory and Logical Design, Chicago, Illinois, USA, October 28–30, 1963. IEEE Computer Society, 1963, S. 23–32.
12.
Zurück zum Zitat S. Ginsburg und S. A. Greibach. „Deterministic context free languages“. In: Information and Control 9 (1966), S. 620–648. S. Ginsburg und S. A. Greibach. „Deterministic context free languages“. In: Information and Control 9 (1966), S. 620–648.
13.
Zurück zum Zitat N. Chomsky und M. P Schützenberger. „The algebraic theory of context-free languages“. In: Computer programming and formal systems. North-Holland, Amsterdam, 1963, S. 118–161. N. Chomsky und M. P Schützenberger. „The algebraic theory of context-free languages“. In: Computer programming and formal systems. North-Holland, Amsterdam, 1963, S. 118–161.
Metadaten
Titel
Kontextfreie Sprachen
verfasst von
André Schulz
Copyright-Jahr
2022
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-662-65142-1_3

Premium Partner