GATE Computer ScienceHardGATE CSE · UGC NET
For a Turing machine M given as input, which one of the following problems is decidable?
- A. L(M) is a regular language
- B. L(M) contains the empty string
- C. M has at least 10 states
- D. L(M) = ∅
Correct answer: C. M has at least 10 states
Counting the states is a property of the machine description, not of its language, so it is trivially decidable; the other three are non-trivial properties of L(M) and are undecidable by Rice's theorem.
More Theory of Computation questions
- Let L be the set of strings over {a, b} whose second symbol from the right is a, and which also satisfy: the last symbol is b, or the…
- Over {a, b, c}, let L = {aⁱbʲcᵏ : i = j} ∪ {aⁱbʲcᵏ : j = k} (i, j, k ≥ 0). How many strings of length at most 12 belong to L?
- Let A ≤ₘ B denote a many-one (mapping) reduction from A to B. How many of the following hold for all A, B? (i) B decidable ⇒ A decidable…
- Consider the grammar S → aSa | bSb | a | b | ε. How many strings of length exactly 7 does it generate?
- Let L = { w ∈ {a, b} : the number of a's is divisible by 4 and w contains bb as a substring }. How many states does the minimal complete…
- A DFA reads 12-bit strings (MSB first) and accepts exactly those whose binary value is divisible by 7 (the all-zeros string included). How…