15. Give a simple description of the language generated by the grammar with productions SaaA, A...
Give an unambiguous grammar for the same language generated by
the grammar:
<fruit>* : -<yellow» | <red> <yellow» banana |mango | <empty> <red> ::- cherry | apple | <empty> "Same language" means that the unambiguous grammar can generate exactly the same set of strings as the ambiguous grammar. No more; no fewer. There will of course be a difference in how - by what NTSs and productions - at least some of those strings are generated
* : -
7. What language does the grammar with these productions generate (5 points)? S + Aa, AB, B → Aa
Give a set notation definition of the language generated by the grammar S → aS | aA | a A → aAb | ab
give a regular grammar that defines the same language as abb*c. Use as few productions as possible. * is ^n
indicate what language is generated by the context-free grammar. The alphabet is Σ = {a, b} • S → SaS | bS
Give a brief description of the language generated by the following production rules. S → abc S → aXbc Xb → bX Xc → Y bcc aY → aa aY → aaX bY → Y b aY → aa aY → aaX
Automata Theory
Give a DFA that accepts the language generated by this
grammar:
→ ABC A → aB€ B + 6C C → CALE
Construct a regular grammar G (a" b) c (aa bb)? VT, S, P) that generates the language generated by
Construct a regular grammar G (a" b) c (aa bb)? VT, S, P) that generates the language generated by
What is the language L(G) generated by the context-free grammar G given below? S -> A | aB | bA | ε A -> aS | bAA B ->bS | aBB
Question 6. Give a brief description of the language generated by the following production rules. S → abc S → aXbc Xb → bX Xc → Y bcc bY → Y b aY → aa aY → aaX