Back to the 2022 paper

Module 2: Context-free languages and pushdown automata

202214m

Begin with the grammar:
S→ASB/ϵS \to ASB / \epsilon
A→aAS/aA \to aAS / a
B→SbS/A/bbB \to SbS / A / bb

(i) Eliminate ϵ\epsilon-productions.
(ii) Eliminate unit productions in the resulting grammar.
(iii) Eliminate any useless symbol in the resulting grammar.
(iv) Put the resulting grammar into CNF.

Similar questions

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.