1.

Which grammar is not regular?(a) 0^n(b) 0^n 1^n n(c) 0^m 0^n n(d) 0^n 0^n nThe question was posed to me in quiz.This key question is from The NFA with n-moves to the DFA in division Finite Automata and Regular Expression of Compiler

Answer»

The correct option is (a) 0^n

The BEST I can explain: ACCORDING to pumping lemma, is not a REGULAR language. It is the language of the DFA with two states to ACHIEVE an even NUMBER of 0’s…



Discussion

No Comment Found

Related InterviewSolutions