

InterviewSolution
Saved Bookmarks
1. |
Which among the following is a CFG for the given Language:(a) L={x∈{0,1}*|number of zeroes in x=number of one’s in x}(b) S->e|0S1|1S0|SS(c) S->0B|1A|eA->0SB->1S(d) All of the mentionedThe question was asked during an online interview.This is a very interesting question from Sentential Forms topic in portion Context Free Grammars and Languages of Automata Theory |
Answer» Correct CHOICE is (c) S->0B|1A|eA->0SB->1S |
|