GATE / CS ARCHIVE

GATE CSE 1999 / QUESTION 1.5

Context-free closure properties

Theory of Computation · Closure Properties & Language Hierarchy · Full GATE CSE 1999 paper

GATE 1999, Q1.5 1 mark · MCQ
Report issue

Closure Properties & Language Hierarchy

Question 1.5, GATE 1999: Which pair of operations preserves context-free languages: intersection/complement, union/Kleene star, or the other listed pairs?
Question 1.5, GATE 1999: Which pair of operations preserves context-free languages: intersection/complement, union/Kleene star, or the other listed pairs?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

For union, introduce a fresh start symbol with alternatives leading to the two original start symbols. For Kleene star, introduce S→S_old S|ε, producing any finite concatenation of words from the original language. Thus union and star preserve context-freeness. Intersection does not: {ai bi cj} intersected with {ai bj cj} gives {an bn cn}. Closure under complement together with union would imply intersection closure by De Morgan, so complement closure also fails. Hence B.

Original paper, page 1