Home » Compiler Design » Compiler design miscellaneous » Question

Compiler design miscellaneous

  1. Which one of the following problems is undecidable?
    1. Deciding if a given context-free grammar is ambiguous.
    2. Deciding if a given string is generated by a given context-free grammar.
    3. Deciding if the language generated by a given context free grammar is empty.
    4. Deciding if the language generated by a given context free grammar is finite.
Correct Option: A

There is no algorithm for ambiguity of CFG



Your comments will be displayed only after manual approval.