GATE Computer ScienceHardGATE CSE · UGC NET

Consider these problems: (a) Given a DFA M, is L(M) empty? (b) Given two CFGs G₁, G₂, is L(G₁) ∩ L(G₂) = ∅? (c) Given a TM M and input w, does M halt on w within 10⁶ steps? (d) Given a CFG G and a regular expression R, is L(G) ⊆ L(R)? (e) Given a PDA P, is L(P) regular? (f) Given a TM M, does L(M) contain at least 3 strings? How many of these are undecidable?

  1. A. 2
  2. B. 4
  3. C. 5
  4. D. 3

Correct answer: D. 3

(b) intersection emptiness of CFGs, (e) regularity of a CFL and (f) a non-trivial property of L(M) (Rice) are undecidable; (a), (c) and (d) (L(G) ∩ complement(R) is a CFL, test emptiness) are decidable.

More Theory of Computation questions

Exams that ask this topic