• retagged by
2,574 views
19 19 votes

Which of the following decision problems is decidable$? \;\text{(TM}$ stands for Turing Machine)

  1. Given a $\text{TM M}$ and a string $w,$ does $\text{M}$ ever write the symbol $\#$ on its tape on input $y?$
  2. Given a $\text{TM M}$, are there infinitely many $\text{TMs}\; \text{M}^{\prime}$ accepting the same r.e. set $\mathrm{A}=\mathrm{L}(\mathrm{M})?$
  3. Given a $\text{TM M}$ and a string $y,$ does $\text{M}$ accept $y?$
  4. $\{\text{M} \mid \text{$\text{TM M}$ takes more than 2023 steps on some input}\}?$

2 Answers

12 12 votes

Option A Explanation:

It is a standard Undecidable problem if a given TM $M$ prints a symbol $\#$ or not.

Assume that You can decide if a given TM $M$ when run on a given $w$ will print a symbol $\#$ or not. 

Now, I come to you to decide the Halting Problem. 

You can do this: Given a TM $M$, you can change it a little bit. Just make small changes so that if $M$ halts then it prints a symbol $\#$, otherwise it does not print $\#$.

Now, if you can decide problem of printing $\#$, then you can also decide the halting problem. 

That's the reduction from halting problem to the printing $\#$ problem.

  1. Undecidable, since the halting problem is reducible to it. Indeed, given $\text{M}$ (without $\#$ among the tape alphabet) build $\text{M}^{\prime}$ as follows: $\text{M}^{\prime}$ simulate $\text{M}$ but each time $\text{M}$ wants to halt $\text{M}^{\prime}$ first prints $\#$ and then halts. It is clear, that $\text{M}$ halts on $y$ if and only if $\text{M}^{\prime}$ writes $\#$ on input $y$. Therefore, if we could decide (A) we would be able to decide the halting problem.
     
  2. Decidable. This is a trivial property, since for each $\text{TM M}$ there are infinitely many $\text{TMs}\;\text{M}^{\prime}$ accepting the same r.e. set $\text{A = L(M)}$.
     
  3. Undecidable. Acceptance problem of $\text{TMs}.$
     
  4. Decidable. Run $\text{TM M}$ for max $2023$ steps on all strings of length $\leq 2023.$
Detailed Video Explanation of Option D Here: ALL Step Based GATE PYQs & Complete Explanation 

 

Option D Explanation:  https://gateoverflow.in/396348/go-classes-cs-test-series-2025-mock-gate-test-2-question-37?show=439558#c439558

• edited by
2 2 votes

 

  • A. Undecidable: This is a variation of the "State Entry Problem" or "Halting Problem." We cannot generally determine if a TM will ever perform a specific action (like writing a symbol) on an input.

  • B. Decidable (Trivial): For any recursively enumerable (r.e.) set, there are always infinitely many TMs that accept it (e.g., by adding redundant states). A decider for this problem would simply always output "Yes."

  • C. Undecidable: This is the Membership Problem ($w \in L(M)$), which is known to be undecidable.

  • D. Decidable: This is a bounded property. To check if $M$ takes $> 2023$ steps on some input, we only need to check inputs up to length 2023. If an input is longer, the TM cannot even read past the 2023rd symbol within 2023 steps. Since the number of strings of length $\leq 2023$ is finite, we can simulate the TM on all of them for 2024 steps. If it hasn't halted on any, the answer is "Yes."

Correct Options: B and D.


 

Answer:
Position:
Show:

Related questions

26 26 votes
2 2 answers
2.8k
2.8k views
GO Classes asked Jan 19, 2023
2,800 views
If $\mathrm{A}$ is a set, let $|\mathrm{A}|$ denote the cardinality of set $\mathrm{A}$.We say $\text{|B|}=|\text{A}|$ if and only if there exists a bijection from $\text...
28 28 votes
4 4 answers
3.1k
3.1k views
GO Classes asked Jan 19, 2023
3,072 views
For any language $\text{L},$ we define two operations, square and double as follows:The square of a language $\mathrm{L}$ is $\mathrm{Sq}(\mathrm{L})=\{ww: w \in \mathrm{...
18 18 votes
3 3 answers
2.4k
2.4k views
GO Classes asked Jan 19, 2023
2,437 views
For which of the following does there exist a simple undirected graph $\text{G = (V, E)}$ satisfying the specified conditions?A tree with $9$ vertices and the sum of the ...
25 25 votes
1 1 answer
2.1k
2.1k views
GO Classes asked Jan 19, 2023
2,104 views
For an array $\text{A}[1 \ldots n]$, an inversion is any pair of items $\text{A}[i]$ and $\text{A}[j]$ such that $\text{A}[i] \lt \text{A}[j]$ but $i>j$.We want to sort t...