FA - 10-1 - Closure Properties of Regular Languages
FA - 10-1 - Closure Properties of Regular Languages
A ∩ B = (A’ U B’)’
Step 1: A’
Step 2: B’
Step 3: A’ U B’
Step 4: (A’ U B’)’
DFA1:
DFA2:
Step 1: DFA1’:
Step 2: DFA2’:
Step 3: DFA1’ ∪ DFA2’:
Proof:
We know that
o If M is regular language then M’ is also regular
o If L and M are regular languages then L ∩ M is also regular
Because L – M = L ∩ M’, so L – M is also regular.
Task: Implement this on DFA for the language accepting strings containing aa.
Decidability:
RE: (a+λ)(ab*+ba*)(λ+b*)*
Note:
o aλ = a
o λa = a
o aλb = ab
o bλa = ba
Q3. Are the languages equivalent?
L1 and L2 are not equivalent because
L1 = {2,3,4,5}
- although all members L1 are in L2,
L2 = {2,3,4,5,6} - but all members of L2 are not in L1.
If (L1 ∩ L2’) + (L1’ ∩ L2) = {} then it means both languages are equivalent !!!
U = {1,2,3,4,5}
L1 = {1,2,3} L1’ = {4,5}
L2 = {1,2,3} L2’ = {4,5}
L1 ∩ L2’ = {} L1’ ∩ L2 = {}