Skip to main content

GATE CSE 2021Theory of Computation › Decidability, Turing Machines & ComputabilityVerified

GATE CSE 2021 PYQ: Let ⟨ M ⟩ \langle M \rangle ⟨ M ⟩ denote an encoding of an automaton M M M . Suppose that Σ = { 0 , 1 }…

Let ⟨M⟩\langle M \rangle denote an encoding of an automaton MM. Suppose that Σ={0,1}\Sigma = \{0,1\}. Which of the following languages is/are NOT\text{NOT} recursive?

  1. A
    L={⟨M⟩∣ML= \{ \langle M \rangle \mid M is a DFA\text{DFA} such that L(M)=∅}L(M)=\emptyset \}
  2. B
    L={⟨M⟩∣ML= \{ \langle M \rangle \mid M is a DFA\text{DFA} such that L(M)=Σ∗}L(M)=\Sigma^* \}
  3. C
    L={⟨M⟩∣ML= \{ \langle M \rangle \mid M is a PDA\text{PDA} such that L(M)=∅}L(M)=\emptyset \}
  4. D
    L={⟨M⟩∣ML= \{ \langle M \rangle \mid M is a PDA\text{PDA} such that L(M)=Σ∗}L(M)=\Sigma ^* \}
    Correct answer

Answer

(D) L = { ⟨ M ⟩ ∣ M L= \{ \langle M \rangle \mid M L = {⟨ M ⟩ ∣ M is a PDA \text{PDA} PDA such that L ( M ) = Σ ∗ } L(M)=\Sigma ^* \} L ( M ) = Σ ∗ }

Approach

The question asks which language is not recursive, i.e. which membership problem is undecidable. Check the standard decidability results for DFA and PDA problems: DFA emptiness and DFA universality are decidable; PDA emptiness is decidable; PDA universality is not decidable.

Options A and B are decidable properties of DFAs. Option C is a decidable property of PDAs, since CFL emptiness is decidable. Option D is the universality problem for PDAs/CFLs, which is undecidable, so its language is not recursive.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.