GATE 2020 CS – Question 36
Which of the following languages are undecidable? Note that $\langle M\rangle$ indicates encoding of the Turing machine M.
$L_1=\{\langle M\rangle\mid L(M)=\emptyset\}$
$L_2=\{\langle M,w,q\rangle\mid M$ on input $w$ reaches state $q$ in exactly 100 steps$\}$
$L_3=\{\langle M\rangle\mid L(M)$ is not recursive$\}$
$L_4=\{\langle M\rangle\mid L(M)$ contains at least 21 members$\}$
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $L_1, L_3$, and $L_4$ only
Explanation
$L_2$ is decidable, since it only needs a 100-step simulation. $L_1$, $L_3$ and $L_4$ are non-trivial properties of $L(M)$, hence undecidable by Rice's theorem.