Which of the following are correct for regular expressions? a. ∅ + L = L + ∅ = L b. εL = Lε = L c. ∅L = L∅ = ∅ d. ∅L = L∅ = L
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 and the annihilator for concatenation; ε is the identity for concatenation. So a, b and c are correct and d is false.
More Theory of Computation and Compilers questions
- Match the following based on the language accepted by using brute force method of parsing.
- What is the safest order while simplifying Context Free Grammar? ∈
- What is the Move in the cell with number 'M1' of the resultant Table?
- What is the Move in the cell with the number 'M2' of the resultant Table?
- What is the Move in the cell with number 'M3' of the resultant Table?
- What is the Move in the cell with number 'M4' of the resultant Table?