All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · November 2020

Let G1 and G2 be arbitrary context-free grammars and R an arbitrary regular language. Which problems are undecidable? (A) Is L(G1) = L(G2)? (B) Is L(G2) ⊆ L(G1)? (C) Is L(G1) = R?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. (A), (B) and (C)

Explanation

Equivalence and containment of CFLs are undecidable, and so is equality with a regular language (taking R = Σ* gives the undecidable universality problem).

More Theory of Computation and Compilers questions