Which one of the following is not decidable?
View worked solution
Answer: B
To determine which of the given problems is not decidable, let us analyze each option:
- Given a Turing machine , a string , and an integer , accepts within steps:
Decidable. We can construct a universal Turing machine to simulate on input for exactly steps. Since the number of steps is finite, the simulation is guaranteed to halt. If reaches an accepting state in steps, we accept; otherwise, we reject. - Equivalence of two given Turing machines:
Undecidable. Testing whether two arbitrary Turing machines and accept the same language () 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). - 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. - 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 by identifying the set of "generating" variables (variables that can eventually derive a string of terminals) and checking if the start symbol is generating.
Therefore, the problem in option B is not decidable.
Free practice · Your answers on this page are not saved.
