Back to the 2021 paper

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

202114m

Using the CYK algorithm, determine whether baaba is in L(G)L(G) for the grammar:

S → AB | BC
A → BA | a
B → CC | b
C → AB | a

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.