Back to the 2021 paper

Module 2: Context-free languages and pushdown automata

202114m

Consider the 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 "baaba" is in L(G)L(G) or not.

Similar questions