...
Theory-of-Computation
December 6, 2023
Theory-of-Computation
December 6, 2023
Theory-of-Computation
December 6, 2023
Theory-of-Computation
December 6, 2023

Theory-of-Computation

Question 39

Which one of the following is not decidable?

A
Given a Turing machine M, a stings s and an integer k, M accepts s within k steps
B
Equivalence of two given Turing machines
C
Language accepted by a given finite state machine is not empty
D
Language generated by a context free grammar is non empty
Question 39 Explanation: 
(A) It is not halting problem. In halting problem number of steps can go upto infinity and that is the only reason why it becomes undecidable.

In (A) the number of steps is restricted to a finite number ‘k’ and simulating a TM for ‘k’ steps is trivially decidable because we just go to step k and output the answer.
(B) Equivalence of two TM’s is undecidable.
For options (C) and (D) we do have well defined algorithms making them decidable.
Correct Answer: B
Question 39 Explanation: 
(A) It is not halting problem. In halting problem number of steps can go upto infinity and that is the only reason why it becomes undecidable.

In (A) the number of steps is restricted to a finite number ‘k’ and simulating a TM for ‘k’ steps is trivially decidable because we just go to step k and output the answer.
(B) Equivalence of two TM’s is undecidable.
For options (C) and (D) we do have well defined algorithms making them decidable.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!