1.

Which of the following is an example of inherent ambiguous language?(a) {a^n|n>1}(b) {a^nb^nc^md^m| n,m > 0}(c) {0^n1^n|n>0}(d) None of the mentionedI got this question by my college director while I was bunking the class.This interesting question is from Ambiguous Grammar in chapter Context Free Grammars and Languages of Automata Theory

Answer»

The correct choice is (b) {a^nb^nc^md^m| n,m > 0}

To explain I WOULD say: This set is CONTEXT-free, since the UNION of TWO context-free languages is always context free.



Discussion

No Comment Found

Related InterviewSolutions