Back to the 2019 paper

Module 2: Context-free languages and pushdown automata

20197m

Using the following grammar
SABBCS \to AB \mid BC
ABAaA \to BA \mid a
BCCbB \to CC \mid b
CABaC \to AB \mid a

use the CYK algorithm to determine whether the given string baababaaba is in L(G)L(G) or not.

Similar questions