SlideServe
Menu
Préférences
© SlideServe · v2026

Regular Grammars

quentin-reid avatar
7 diapositives · 248 Views · Oct 26, 2014

Regular Grammars. Right-linear Grammar. A grammar G=(V,T,S,P) is right-linear if all productions are of the form A -> xB, or A -> x where A,B  V, and x  T*. Language of RL Grammar. Claim: For all right-linear grammars G, L(G) is regular Proof by construction. A RL Grammar for a RL.

Regular Grammars - slide 1
01 / 7Regular Grammars
1 / 17

Télécharger la présentation

Regular Grammars
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Regular Grammars

  2. Right-linear Grammar • A grammar G=(V,T,S,P) is right-linear if all productions are of the form • A -> xB, or • A -> x where A,B  V, and x  T*

  3. Language of RL Grammar • Claim: For all right-linear grammars G, L(G) is regular • Proof by construction

  4. A RL Grammar for a RL • For any regular language L over alphabet ∑, there is a right-linear grammar G=(V,∑,S,P) such that L = L(G) • Proof by construction

  5. Questions (1/3) • Is the language of the grammar G1 = ({S,A},{a,b},S,{S -> aS | A, A -> bA}) a regular language? • If it is, give an FA with the same language.

  6. Questions (2/3) • Is the language of the grammar G2 = ({S,B}, {a,b}, S, {S -> aB | λ, B -> Sb}) a regular language? • If so, give an FA with the same language as G2.

  7. Questions (3/3) • Give a regular grammar with the same language as the following DFA. c q1 a,b b a,b,c a q0 q3 c b q2 c a