GATE Computer ScienceEasyGATE CS (PYQ pattern)
Which of the following problems is undecidable?
- A. Given a DFA D, is L(D) empty?
- B. Given a Turing machine M, is L(M) empty?
- C. Given two DFAs, do they accept the same language?
- D. Given a CFG G and a string w, is w ∈ L(G)?
Correct answer: B. Given a Turing machine M, is L(M) empty?
Emptiness of a TM's language is undecidable (Rice's theorem). The other three are decidable (graph reachability, product construction, CYK).
More Theory of Computation questions
- Let TOTAL = { ⟨M⟩ : the Turing machine M halts on every input }. Which statement about TOTAL is correct?
- Let A = { ⟨M⟩ : the TM M halts on at least one input } and B = { ⟨M⟩ : M halts on no input }. Which statement is correct?
- Which of the following statements about many-one reductions A ≤ B are correct? I. If B is decidable then A is decidable. II. If A is…
- Which of the following languages is context-sensitive but NOT context-free?
- An ε-NFA has 6 states. When it is converted to a DFA by the subset construction, what is the maximum possible number of states in the…
- A grammar in Chomsky normal form (no ε-productions) derives a string of length 15. Let N be the number of derivation steps and H the…