GATE Computer ScienceModerateGATE CSE
Which of the following problems is decidable for the given input? I. Is the language of a given context-free grammar empty? II. Are two given context-free grammars equivalent? III. Does a given Turing machine halt on the blank tape? IV. Is the language of a given DFA finite?
- A. I, II and IV only
- B. I and III only
- C. II and IV only
- D. I and IV only
Correct answer: D. I and IV only
Emptiness of a CFG and finiteness of a DFA language are decidable by graph checks. CFG equivalence and the blank-tape halting problem are undecidable.
More Theory of Computation questions
- Which of the following languages over {a, b} is context-free but not regular?
- A grammar in Chomsky normal form (no ε-productions) is used to derive a string of length 9. How many derivation steps (production…
- Over {a, b}, L = { w : |w| ≥ 3 and the third symbol from the right end is a }. What is the number of states in its minimal complete DFA?
- Over {a, b}, let L = { w : na(w) ≡ 1 (mod 4) OR nb(w) is even }. What is the number of states in its minimal complete DFA?
- Over {a, b}, L = { w : the fourth symbol from the right end of w is a }. How many states does the minimal complete DFA of L have?
- How many strings of length 8 over {a, b} contain aa as a substring but do not contain bb as a substring?