Study this topic

Closure and Decision Properties of CFLs

Context-free languages are closed under union, concatenation, star, reverse and homomorphism, and under intersection with regular languages. They are not closed under intersection or complement. Membership, emptiness and finiteness are decidable for CFGs; equivalence and regularity are not.

Short notes6 min read

Pumping Lemma for Context-Free Languages

The pumping lemma for context-free languages gives a necessary condition on every CFL. It is used to prove that languages such as a^n b^n c^n and ww are not context-free. The decomposition has five pieces uvxyz with constraints that reflect a repeated path in a CNF parse tree.

Short notes6 min read