GATE Computer ScienceHardGATE CSE
For a Turing machine M given as input, how many of these properties are undecidable? (a) L(M) = ∅ (b) M has at least 5 states (c) L(M) contains at least two strings (d) M halts on the input 01 within 100 steps
- A. 1
- B. 3
- C. 2
- D. 4
Correct answer: C. 2
(a) and (c) are non-trivial properties of L(M), undecidable by Rice's theorem. (b) is read off the description and (d) is decided by simulating 100 steps.
More Theory of Computation questions
- Which of the following languages over {0, 1} is regular?
- A single-tape TM (blank B) starts in q0 at the leftmost symbol of a binary string. Rules: δ(q0,0) = (q0,0,R); δ(q0,1) = (q0,1,R); δ(q0,B)…
- How many strings of length 10 over {a, b} have no three consecutive equal symbols (neither aaa nor bbb)?
- Over {a, b}, L = { w : w contains aab as a substring and |w| is odd }. What is the number of states in the minimal complete DFA for L?
- Decimal numerals are read most significant digit first (empty string = 0, leading zeros allowed). What is the number of states in the…
- Let L = { w ∈ {a, b} : the third symbol from the right end of w is a }; its minimal complete DFA has 8 states. How many states does the…