Which of the following decision problems are undecidable?
- Given NFAs and , is
- Given a CFG and a string , does } ?
- Given CFGs and , is ?
- Given a TM , is ?
View worked solution
Answer: C
We analyze the decidability of each decision problem:
- Given NFAs and , is ?
Decidable. Regular languages are closed under intersection, and the resulting intersection language can be represented by a product DFA/NFA. The emptiness of a regular language is decidable (by checking reachability of any final state from the start state in the transition graph). - Given a CFG and a string , does ?
Decidable. This is the membership problem for Context-Free Grammars, which can be solved in polynomial time using parsing algorithms like the CYK algorithm. - Given CFGs and , is ?
Undecidable. The equivalence problem for context-free languages is a well-known undecidable problem. - Given a TM , is ?
Undecidable. The emptiness problem for Turing Machines is undecidable, which can be shown via reduction from the Halting Problem or by Rice's Theorem (as emptiness is a non-trivial semantic property of recursively enumerable languages).
Thus, problems III and IV are undecidable, making C the correct option.
Free practice · Your answers on this page are not saved.
