in Theory of Computation edited by
321 views
0 votes
0 votes

Consider the language $L = \{a^nb^nc^m\}U \{a^nb^mc^m\}$ with $n$ and $m$ nonnegative. Which of the following options is correct?

  1. There is no context free grammar possible for $L$.
  2. There exists a simple grammar for $L$.
  3. There exists an unambiguous grammar for $L$.
  4. There exists an ambiguous grammar for $L$.
in Theory of Computation edited by
321 views

2 Comments

This is the example of Inherently Ambiguous Languages. A language is called Inherently Ambiguous if there is no unambiguous CFG exist for it...  ie. all the grammars from which a language can be generated ,are ambiguous grammars.

Please refer Pravin sir's answer here :- https://gateoverflow.in/7428/grammar-generates-inherently-ambiguous-context-language

1
1
d option
0
0

Please log in or register to answer this question.

Related questions