Skip to content
Official PYQ · 1997

GATE CS 1997 Q6.5 — Undecidability

Explain with AI

Which one of the following is not decidable?

Choose one option
View worked solution

Answer: B

To determine which of the given problems is not decidable, let us analyze each option:

  1. Given a Turing machine MM, a string ss, and an integer kk, MM accepts ss within kk steps:
    Decidable. We can construct a universal Turing machine to simulate MM on input ss for exactly kk steps. Since the number of steps kk is finite, the simulation is guaranteed to halt. If MM reaches an accepting state in ≤k\le k steps, we accept; otherwise, we reject.
  2. Equivalence of two given Turing machines:
    Undecidable. Testing whether two arbitrary Turing machines M1M_1 and M2M_2 accept the same language (L(M1)=L(M2)L(M_1) = L(M_2)) is a well-known undecidable problem. This can be proven via reduction from the Halting Problem or by applying Rice's Theorem (as equivalence is a non-trivial semantic property of Turing machines).
  3. Language accepted by a given finite state machine is not empty:
    Decidable. The emptiness problem for Finite Automata (FA) is decidable. We can use graph reachability algorithms (like BFS or DFS) to check if there is a path from the start state to any accepting state.
  4. Language generated by a context-free grammar is non-empty:
    Decidable. The emptiness problem for Context-Free Grammars (CFGs) is decidable. We can determine if L(G)≠∅L(G) \neq \emptyset by identifying the set of "generating" variables (variables that can eventually derive a string of terminals) and checking if the start symbol SS is generating.

Therefore, the problem in option B is not decidable.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Undecidability questions