GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 8

Empty-language concatenation and star

Theory of Computation · Regular Expressions & Languages · Full GATE CSE 2013 paper

GATE 2013, Q8 1 mark · MCQ
Report issue

Regular Expressions & Languages

Question 8, GATE 2013: Let L1=∅ and L2={a}. Evaluate L1 L2* ∪ L1*. A{ε}; B∅; C a*; D{ε, a}.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The concatenation of the empty language with any language is empty. Meanwhile ∅*={ε}. Therefore the displayed union is{ε}, A.

Language concatenation requires one word from each operand. Since L1 contains no word at all, L1 L2* contains none, irrespective of L2*. A Kleene star always includes the concatenation of zero words, namely ε. With an empty base language there are no positive-length concatenations, so L1* contains exactly ε. Taking the union of ∅ with{ε} yields{ε}; do not confuse ∅ with the singleton language containing the empty word.

Original paper, page 3 · Answer key