All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · November 2020

Let 1 and 2 be languages over represented by the regular expressions (a∗ + b)∗ (a + b)∗ and respectively. Which of the following is true with respect to the two languages?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. L₁ = L₂

Explanation

(a* + b)* can produce any single a or b repeatedly, so it equals (a + b)* = all strings over {a, b}.

More Theory of Computation and Compilers questions