1.

State true or false:S-> 0S1|01(a) S-> 0S1|01(b) Statement: No regular expression exists for the given grammar.(c) true(d) falseI had been asked this question in quiz.Asked question is from DPDA and Ambiguous Grammars in division Push Down Automata of Automata Theory

Answer» CORRECT option is (a) S-> 0S1|01

For explanation I would SAY: The grammar generates a LANGUAGE L such that L={0^n1^n|n>=1} which is not regular. Thus, no regular expression exists for the same.


Discussion

No Comment Found

Related InterviewSolutions