- Consider the context-free grammar S à ySx | yySx | e
- Show that the grammar is ambiguous.
- Derive an equivalent unambiguous grammar.
- Design a PDA for the following languages:
- 𝐿! $# | 𝑘 ≥ 0}
- 𝐿” ’ | 𝑎, 𝑏, 𝑐 ≥ 0 and 𝑎 + 𝑏 = 𝑐 }
- Prove or disprove the following statements:
- The class of context-free languages are closed under the union operation.
- The class of context-free languages are closed under the intersection operation. Hint: Consider the following two languages:
𝐿! = {𝑎(𝑏)𝑐) | 𝑚, 𝑛 ≥ 0}
𝐿” = {𝑎)𝑏)𝑐( | 𝑚, 𝑛 ≥ 0}
- Given the following context-free grammar:
S à XY | e
- à xY
- à Sy
- What is the language generated by this grammar?
- Draw the parse tree for the string xxyyyy.
- Convert the following context-free grammar to an equivalent grammar in Chomsky Normal Form.
S à ASA | A | e
A à 11 | e
- What is the language on {a,b} recognized by the following Turing Machine (a,b,x, and box are the tape symbols where box denotes the empty cell) ?
- Prove or disprove the following statement:
Turing-recognizable languages are closed under the intersection operation.
- Prove that the following languages are decidable (give the deciders for each of the language):
- 𝐿! = { < 𝐷, 𝑅 > | 𝐷 is a DFA, 𝑅 is a regular expression and 𝐿(𝐷) = 𝐿(𝑅) }
- 𝐿” = { < 𝑁 > | 𝑁 is an NFA and 𝐿



