1.

Which of the following are always unambiguous?(a) Deterministic Context free grammars(b) Non-Deterministic Regular grammars(c) Context sensitive grammar(d) None of the mentionedThis question was posed to me in an online quiz.My question is taken from Ambiguous Grammar in portion Context Free Grammars and Languages of Automata Theory

Answer»

Right choice is (a) DETERMINISTIC Context FREE grammars

For explanation I WOULD say: Deterministic CFGs are ALWAYS unambiguous , and are an important subclass of unambiguous CFGs; there are non-deterministic unambiguous CFGs, however.



Discussion

No Comment Found

Related InterviewSolutions