Back to the 2022 paper

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

20227m

Convert the CFG to GNF:

S→AB∣BCA→aB∣bA∣aB→bB∣cC∣bC→c S \to AB \mid BC \\ A \to aB \mid bA \mid a \\ B \to bB \mid cC \mid b \\ C \to c

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.