Which of the following languages are undecidable? Note that ⟨M⟩ indicates encoding of the Turing machne M.
L1 ={⟨M⟩ | L(M) = Φ}
L2 ={⟨ M, w, q ⟩ | M on input w reaches state q in exactly 100 steps} L3 ={⟨M⟩ | L(M) is not recursive) L4 ={⟨M⟩ | L(M) contains at least 21 members)
A
L1 and L3 only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L2 and L3 only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L2, L3 and L4 only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
L1, L3 and L4 only
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is DL1, L3 and L4 only Rice's theorem applies to L1, L3 and L4 since then have condition based on L(M),which are non-trivial. L1: L(M) = Φ is non-trivial condition becuase some Turing machines accept Φ and some don't. L3: L(M) = non-recursive, is non-trivial becuase some Turing machines accept non-recursive and some accept recursive. L4: L(M) contains at least 21 members is non-trivial since some Turing machines accept more than 21 strings, some accept less. L2: We cannot apply Rice's theorem since condition is not on L(M) but on M reaching a state q in exactly 100 steps which can be checked on a UTM.
So L2 is decidable.
So, option (b). L1, L3 and L4 are undecidable is correct.