Let x,y and z be regular expressions. Let α,β,Γ be regular expressions defined as follows. α=(x∗y)∗x∗yβ=x∗y(x∗y)∗Γ=x∗(yx∗)∗y
Let L(α), L(β), L(Γ) be language generated by regular expressions α,β,Γ respectively. Which of the following is true?
A
L(α)⊂L(β),L(β)⊂L(Γ)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
L(β)⊂L(α),L(β)⊂L(Γ)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
L(α)=L(β),L(β)=L(Γ)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
L(α)≠L(Γ),L(β)≠L(Γ)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is CL(α)=L(β),L(β)=L(Γ) Γ=x∗(yx∗)∗yTakeP=x∗,Q=yNow useP(QP)∗=(PQ)∗Pto getα=(x∗y)∗x∗yNow takeP=y.Q=x∗And use(PQ)∗P=P(QP)∗to getβ=x∗y(x∗y)∗ Since we are able to derive α and β from Γ , option (d) is correct. (All are equal)