Back to the 2025 paper

Module 3: Context-Sensitive Languages

20257m

Given the following context-sensitive grammar:
S→aSBC∣abcS \rightarrow aSBC | abc
CB→BCCB \rightarrow BC
aB→abaB \rightarrow ab
bB→bbbB \rightarrow bb
bC→bcbC \rightarrow bc
cC→cccC \rightarrow cc

Identify the language generated by the grammar. Derive the string aabbcc step by step.

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.