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

Which of the following are correct for regular expressions?
a. φ + L = L + φ = L
b. εL = Lε = L
c. φL = Lφ = φ
d. φL = Lφ = L
Choose the correct answer from the options given below:

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

Show answer & explanation

Correct answer: B. a, b and c only

Explanation

φ is the identity for union, ε is the identity for concatenation and φ annihilates concatenation. d contradicts c.

More Theory of Computation and Compilers questions