Back to the 2021 paper

Module 2: Context-free languages and pushdown automata

202114m

Consider the grammar:

S→AB∣BCS \to AB \mid BC
A→BA∣aA \to BA \mid a
B→CC∣bB \to CC \mid b
C→AB∣aC \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

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.