The GATE Grind

GATE 2013 CS (CS1) – Question 18

Theory of Computation · Regular Expressions and Finite Automata · 1 mark · Multiple choice

L₁=∅ and L₂={a}. Evaluate $L_1L_2^*\cup L_1^*$.

  1. $\{\epsilon\}$
  2. $\varnothing$
  3. $a^*$
  4. $\{\epsilon,a\}$

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) $\{\epsilon\}$

Explanation

Concatenating the empty language with any language gives ∅, so L₁L₂*=∅. The Kleene star of ∅ is {ε}, because its zeroth power contains the empty word. Their union is {ε}, A.

More Regular Expressions and Finite Automata questions

All Regular Expressions and Finite Automata questions →