Consider the following problems. denotes the language generated by a grammar . L(M) denotes the language accepted by a machine .
- For an unrestricted grammar and a string , whether
- Given a Turing machine , whether is regular
- Given two grammar and , whether
- Given an NFA , whether there is a deterministic PDA such that and accept the same language
Which one of the following statement is correct?
View worked solution
Answer: D
Let us analyze the decidability of each problem:
- Membership for Unrestricted Grammars: Unrestricted grammars generate Recursively Enumerable (RE) languages. The membership problem () for RE languages is equivalent to the halting problem and is undecidable.
- Regularity of Turing Machine Language: "Being regular" is a non-trivial semantic property of recursively enumerable languages. By Rice's Theorem, determining whether is regular is undecidable.
- Equivalence of Grammars: The equivalence problem () is undecidable for both context-free grammars and unrestricted grammars.
- NFA to DPDA Equivalence: Every regular language (accepted by an NFA ) is also a deterministic context-free language (DCFL), which can be accepted by a deterministic PDA . Therefore, for any given NFA , such a DPDA always exists. Since the answer is always "yes", this problem is trivially decidable.
Thus, only I, II, and III are undecidable.
Free practice · Your answers on this page are not saved.
