Back to the 2023 paper

Module 2: Context-Free Languages (CFL) and PDA

20237m

Eliminate ε\varepsilon, unit, and useless productions from the grammar:

A → bA | Bba | aa
B → aba | b | D
C → CA | AC | B
D → a | ε\varepsilon

Similar questions