1.

Which among the following cannot be accepted bya regular grammar?(a) L is a set of numbers divisible by 2(b) L is a set of binary complement(c) L is a set of string with odd number of 0(d) L is a set of 0^n1^nI have been asked this question by my college director while I was bunking the class.Question is from Context Free Grammar-Derivations and Definitions topic in portion Context Free Grammars and Languages of Automata Theory

Answer»

Right option is (d) L is a set of 0^n1^n

Explanation: There exists no finite automata to accept the given language i.e. 0^n1^n. For other OPTIONS, it is POSSIBLE to MAKE a dfa or NFA REPRESENTING the language set.



Discussion

No Comment Found

Related InterviewSolutions