Computer Science EngineeringHardISRO SC

The intersection of two deterministic context-free languages is

  1. A. always regular
  2. B. always deterministic context-free
  3. C. not necessarily context-free
  4. D. always context-free

Correct answer: C. not necessarily context-free

For example {a^n b^n c^m} intersect {a^m b^n c^n} = {a^n b^n c^n}, which is not context-free.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic