Which of the following is/are undecidable?
- is a CFG. Is ?
- is a CFG. Is ?
- is a Turing machine. Is regular?
- is a DFA and is an NFA. Is ?
View worked solution
Answer: D
To determine which of the given problems are undecidable, let us analyze each statement individually:
- is a CFG. Is ? (Emptiness Problem)
This is decidable. We can determine if a Context-Free Grammar (CFG) is empty by checking if the start symbol can derive any terminal string. This is done using a bottom-up marking algorithm to find all "generating" variables. If the start symbol is generating, the language is non-empty; otherwise, it is empty. - is a CFG. Is ? (Universality Problem)
This is undecidable. The problem of checking whether a CFG generates all possible strings over its alphabet is undecidable, which can be shown by reducing the Turing machine halting problem (via valid computation histories) to it. - is a Turing machine. Is regular? (Regularity Problem)
This is undecidable. According to Rice's Theorem, any non-trivial semantic property of recursively enumerable languages (languages recognized by Turing machines) is undecidable. Since "being regular" is a semantic property of the language, and it is non-trivial (some TMs accept regular languages, while others do not), this problem is undecidable. - is a DFA and is an NFA. Is ? (Equivalence Problem)
This is decidable. Regular languages are closed under complementation, intersection, and union. We can construct a DFA for the symmetric difference and test if this resulting language is empty, which is a decidable property.
Thus, only statements 2 and 3 are undecidable.
Correct Option: D
Free practice · Your answers on this page are not saved.
