1.

CFGs are more powerful than:(a) DFA(b) NDFA(c) Mealy Machine(d) All of the mentionedThe question was asked in a job interview.The doubt is from DPDA and Ambiguous Grammars in section Push Down Automata of Automata Theory

Answer»

The correct CHOICE is (d) All of the mentioned

For explanation I would say: Context-free grammars are strictly more powerful than regular EXPRESSIONS:

1) Any LANGUAGE that can be generated USING regular expressions can be generated by a context-free grammar.

2) There are languages that can be generated by a context-free grammar that cannot be generated by any regular expression.

As a corollary, CFGs are strictly more powerful than DFAS and NDFAs.



Discussion

No Comment Found

Related InterviewSolutions