Revision history for AtfsProduktionen
Additions:
AB → CD Doppelte Substitution
Deletions:
Additions:
==a==Grammatik Typ==a==
[[ChomskyHierarchie Chomsky-Hierarchie]]
[[ChomskyHierarchie Chomsky-Hierarchie]]
Deletions:
S. 49
===Allgemeine Grammatiken (Typ 0)===
===Nichtverkürzte Grammatiken (Typ 1)===
kontextsensitiv
===Kontextfreie Grammatiken (Typ 2)===
===(rechts-)lineare Grammatiken (Typ 3)===
Wobei A,B,C,D ∈ N und t ∈ T ist.
Additions:
==a==Produktionen==a==
No Differences
Additions:
{{image url="images/AtfsGrammatik.png"}}
Deletions:
Additions:
{{image url="images/AtfsGrammatik.tex.png"}}
==a==Sprache und Grammatik==a==
==a==Sprache und Grammatik==a==
Deletions:
===Sprache und Grammatik===
==a==Beispiel==a==
Additions:
(SkriptAtfsEckNr2, S. 47)
Additions:
=====Produktionen und Grammatik formaler Sprachen=====
Deletions:
Deletions:
Additions:
G = ( N = {S,T,F}, T = {x,y,z,*,/,(,)}, Start = S, P = { S → F T
Deletions:
Additions:
==a==Was sind Produktionen?==a==
G sein die Grammatik einer formalen Sprache
N: Alphabet der nichtterminalen Symbole, Platzhalter, z.B. <digit> oder <number>
T: Alphabet der terminalen Symbole mit N ∩ T = ∅, z.B. 1 oder 'p'
===Beispiel===
===Sprache und Grammatik===
L ist eine formale Sprache eine Sprache mit der Grammatik G
==a==Chomsky-Hierarchie==a==
==a==Beispiel==a==
G = ( N = {S,T,F}, T = {x,y,z,*,/,(,)}, Start = S, P = { S → F | T
G sein die Grammatik einer formalen Sprache
N: Alphabet der nichtterminalen Symbole, Platzhalter, z.B. <digit> oder <number>
T: Alphabet der terminalen Symbole mit N ∩ T = ∅, z.B. 1 oder 'p'
===Beispiel===
===Sprache und Grammatik===
L ist eine formale Sprache eine Sprache mit der Grammatik G
==a==Chomsky-Hierarchie==a==
==a==Beispiel==a==
G = ( N = {S,T,F}, T = {x,y,z,*,/,(,)}, Start = S, P = { S → F | T
Deletions:
T: Alphabet der terminalen Symbole mit N ∩ T = ∅, z.B. 1
===Beispiel 1===
==a==Chomsky-Hierarchie ==a==
No Differences
Additions:
==a==Chomsky-Hierarchie ==a==
S. 49
S. 49
Deletions:
Additions:
===Kontextfreie Grammatiken (Typ 2)===
Deletions:
Additions:
A → t Termination
A → tB Expansion
A → BC Expansion
A → CD Doppelte Substitution
A → t Termination
A → BC Expansion
A → CD Doppelte Substitution
A → t Termination
A → BC Expansion
A → t Termination
A → tB Expansion
Wobei A,B,C,D ∈ N und t ∈ T ist.
A → tB Expansion
A → BC Expansion
A → CD Doppelte Substitution
A → t Termination
A → BC Expansion
A → CD Doppelte Substitution
A → t Termination
A → BC Expansion
A → t Termination
A → tB Expansion
Wobei A,B,C,D ∈ N und t ∈ T ist.
Deletions:
Expansion
Expansion
Doppelte Substitution
Termination
Expansion
Doppelte Substitution
Termination
Expansion
Termination
Expansion
Additions:
Chomsky-Hierarchie (Typ 0 bis Typ 3) S. 49
===Allgemeine Grammatiken (Typ 0)===
A → ε Reduktion
Termination
Expansion
Expansion
Doppelte Substitution
===Nichtverkürzte Grammatiken (Typ 1)===
kontextsensitiv
Termination
Expansion
Doppelte Substitution
===Kontextfreie Grammatiken (Typ 2)
Termination
Expansion
===(rechts-)lineare Grammatiken (Typ 3)===
Termination
Expansion
===Allgemeine Grammatiken (Typ 0)===
A → ε Reduktion
Termination
Expansion
Expansion
Doppelte Substitution
===Nichtverkürzte Grammatiken (Typ 1)===
kontextsensitiv
Termination
Expansion
Doppelte Substitution
===Kontextfreie Grammatiken (Typ 2)
Termination
Expansion
===(rechts-)lineare Grammatiken (Typ 3)===
Termination
Expansion
Deletions:
Additions:
L(G) = {x ∈ T* | S ⇒ x }
Chomsky-Hierarchie (Typ 0 bis Typ 3) S.49
Chomsky-Hierarchie (Typ 0 bis Typ 3) S.49
Deletions:
Typ 1: ∀ Produktionen a → b gilt:
b ∈ (N ∪ T)""<sup>+</sup>"" und |a| ≤ |b|
Deletions:
Additions:
Typ 1: ∀ Produktionen a → b gilt:
Deletions:
Additions:
Typ 0: keine Einschränkung
Typ 1: ∀ Produktionen a →b gilt:
Typ 1: ∀ Produktionen a →b gilt:
Deletions:
~-Typ 1: ∀ Produktionen a →b gilt:
Additions:
L(G) = {x ∈ T* | S ⇒ x }
b ∈ (N ∪ T)""<sup>+</sup>"" und |a| ≤ |b|
b ∈ (N ∪ T)""<sup>+</sup>"" und |a| ≤ |b|
Deletions:
~b ∈ (N ∪ T)""<sup>+</sup> und |a| ≤ |b|
Additions:
L(G) = {x ∈ T* ""|"" S ⇒ x }
Deletions:
Additions:
L(G) = {x ∈ T* | S ⇒ x }
~-Typ 0: keine Einschränkung
~-Typ 1: ∀ Produktionen a →b gilt:
~b ∈ (N ∪ T)""<sup>+</sup> und |a| ≤ |b|
~-Typ 0: keine Einschränkung
~-Typ 1: ∀ Produktionen a →b gilt:
~b ∈ (N ∪ T)""<sup>+</sup> und |a| ≤ |b|
Additions:
T: Alphabet der terminalen Symbole mit N ∩ T = ∅, z.B. 1
Deletions:
Additions:
N: Alphabet der nichtterminalen Symbole, z.B. <digit>
T: Alphabet der terminalen Symbole mit N ∩ T = ≠, z.B. 1
S: Startsymbol mit S ∈ N
P: Eine endliche Teilmenge von (N ∪ T)""<sup>+</sup>"" × (N ∪ T)* und heißt die Menge der Produktionen.
T: Alphabet der terminalen Symbole mit N ∩ T = ≠, z.B. 1
S: Startsymbol mit S ∈ N
P: Eine endliche Teilmenge von (N ∪ T)""<sup>+</sup>"" × (N ∪ T)* und heißt die Menge der Produktionen.
Deletions:
T: terminale Symbole: 1
Additions:
N: nichtterminale Symbole: <digit>
T: terminale Symbole: 1
===Beispiel 1===
Schritte:
~1) <number> := <digit>{<digit>}
~1) <digit> := 1
~1) <digit> := 5
T: terminale Symbole: 1
===Beispiel 1===
Schritte:
~1) <number> := <digit>{<digit>}
~1) <digit> := 1
~1) <digit> := 5
Additions:
=====Produktionen in den Automatentheorie=====
Produktionen sind Ersetzungsregeln.
G = (N, T, S, P)
<number> → <digit><digit> → 1<digit> → 15
Produktionen sind Ersetzungsregeln.
G = (N, T, S, P)
<number> → <digit><digit> → 1<digit> → 15