Back to the 2021 paper

Module 2: Context-free languages and pushdown automata

20217m

Show given grammar over alphabet {a,b}\{a, b\}, verify whether it is ambiguous or unambiguous:

SaSabSbabϵS \to aSa \mid bSb \mid a \mid b \mid \epsilon

Similar questions