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:

S→aSa∣bSb∣a∣b∣ϵS \to aSa \mid bSb \mid a \mid b \mid \epsilon

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.