Let denote an encoding of an automaton . Suppose that . Which of the following languages is/are recursive?
View worked solution
Answer: D
To determine which language is NOT recursive (i.e., undecidable), we analyze the decidability of each decision problem:
- Option A: Emptiness of a DFA () is decidable. We can use a simple graph reachability algorithm (like BFS or DFS) to check if any final state is reachable from the start state. Thus, this language is recursive.
- Option B: Completeness of a DFA () is decidable. We can construct the complement DFA and check if its language is empty. Thus, this language is recursive.
- Option C: Emptiness of a PDA () is decidable. Since PDAs accept context-free languages, we can convert the PDA to a CFG and check if the start symbol can generate any terminal string. Thus, this language is recursive.
- Option D: Completeness of a PDA () is a well-known undecidable (not recursive) problem. It can be shown to be undecidable via reduction from the Turing Machine halting/computation history problem.
Therefore, the language in option D is NOT recursive.
Free practice · Your answers on this page are not saved.
