GATEverse
← GATE CSE 2016 Set 1

Q42

MCQ2 marks, −0.67

Consider the following context-free grammars; G1:S→aS∣B,B→b∣bBG_1 : S \to aS \mid B, B \to b \mid bB G2:S→aA∣bB,A→aA∣B∣ε,B→bB∣εG_2 : S \to aA \mid bB, A \to aA \mid B \mid \varepsilon,B \to bB \mid \varepsilon Which one of the following pairs of languages is generated by G1G_1 and G2G_2 ,respectively?

Sign in to save attempts.

Loading…