1,324 views
2 votes
2 votes

Consider the following languages :
L1 : {< M, q >|M is a Turing Machine that visits state q on some input within 15 steps}.
L2 : {< M >|M is a Turing Machine, |M|< 200 where |M|is number of states in machine}.
Which of the following is correct ?

  • L1 is decidable but L2 is not decidable
  • L2 is decidable but L1 is not decidable
  • Both L1 and L2 is decidable
  • Neither L1 nor L2 is decidable

1 Answer

Best answer
6 votes
6 votes
L1: ​​​​​​ Since steps are finite, configurations are also finite. Within finite configurations we can know whether that particular state has been encountered or not. Hence decidable.

L2: Number of states can be known just looking at encoding of inputted TM by/in UTM. Hence decidable.

Therefore, both decidable.
selected by

Related questions

0 votes
0 votes
0 answers
1
RahulVerma3 asked Apr 2
46 views
Is this the correct Turing machine for the language $0^n 1^n0^n$?assuming $ at the end and begining of the input tape
3 votes
3 votes
2 answers
4