Closure Properties
Learn about the closure properties of deterministic and nondeterministic context-free languages.
We'll cover the following
Closure properties of nondeterministic CFLs
Since there is a difference between deterministic and non-deterministic context-free languages, there are differences in their closure properties. We first develop the closure properties for non-deterministic context-free languages, using CFG-based arguments. “Context-free-ness” is preserved under the following operations:
- Union.
- Concatenation.
- Kleene star.
- Regular intersection (intersection with a regular language).
- Regular union (union with a regular language).
Suppose and are the respective start variables for context-free languages and . We can form a CFG for as follows:
Get hands-on with 1400+ tech skills courses.