Back to the 2024 paper

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

20247m

Check whether the grammar is ambiguous:

S→a∣abSb∣aAbS \to a \mid abSb \mid aAb
A→bS∣aAAbA \to bS \mid aAAb

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.