Is CFL $\cap$ DCFL = CFL, always true?
CFL - Any Context Free Language
DCFL - Any Deterministic Context Free Language
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityIs CFL $\cap$ DCFL = CFL, always true?
CFL - Any Context Free Language
DCFL - Any Deterministic Context Free Language
Even the intersection of two deterministic context-free languages may not be context-free.
Consider $L_1 = \{a^nb^nc^m\mid n,m\geqslant 0\}$ and $L_2 = \{a^nb^mc^m\mid n,m\geqslant 0\}$. Both languages are DCFL, but their intersection is $\{a^nb^nc^n\mid n\geqslant 0\}$ which is not context-free.