Please tell whether the following is Decidable, Semi-decidable or Undecidable
A turing machine halts after running for exactly k steps
A turing machine halts after running for atmost k steps
A turing machine halts after running for atleast k steps
A turing machine accepts a string "x" after running for exactly k steps
A turing machine accepts a string "x" after running for atmost k steps
A turing machine accepts a string "x" after running for atleast k steps
A turing machine visits a particular state "q" exactly k times
A turing machine visits a particular state "q" atmost k times
A turing machine visits a particular state "q" atleast k times
A turing machine visits a particular state "q" exactly k times on input "x"
A turing machine visits a particular state "q" atmost k times on input "x"
A turing machine visits a particular state "q" atleast k times on input "x"
Deepakk Poonia (Dee) 3 is UD because we don't know whether the TM after running for k steps will actually halt or not in the future?
And for 1 and 2..we don't have to check for all the inputs right? Can you please share your approach for all the statements? I face problems in these..one of the ways that i have seen is separating all the strings of length=k and run them on TM. If all of them take exactly k steps then we can say that other strings(length>k) having their substrings in the 1st partition will also take exactly k steps.. if this is so i have doubts...
Thanks in advance :)
64.3k questions
77.9k answers
244k comments
80.0k users