GATE Computer ScienceHardGATE CS (PYQ pattern)

L₁ and L₂ are context-free languages. Which statement about L₁ ∩ L₂ is always correct?

  1. A. It is context-sensitive, hence decidable
  2. B. It is always context-free as well
  3. C. It is always a regular language
  4. D. It may be an undecidable language

Correct answer: A. It is context-sensitive, hence decidable

CFL ∩ CFL need not be context-free (e.g. {aⁿbⁿcᵐ} ∩ {aᵐbⁿcⁿ}) but it is always context-sensitive because CSLs contain CFLs and are closed under intersection; all CSLs are decidable.

More Theory of Computation questions

Exams that ask this topic