2,096 views
4 votes
4 votes

May someone please explain via simple Set Theory Basics that why DCFL is "not" closed under - 

1) UNION 2) INTERSECTION 3) SET DIFFERENCE but is "closed" under complement.

Things I know - 

a) DCFL is proper subset of CFL 

Thank you! I'm being forced to By Heart them, but I don't want to.

1 Answer

2 votes
2 votes

$\text{Why DCFL is closed under complemetation?}$

$\text{we can easily find its complement by interchanging Non final to final and vice versa}$

$\text{then why not CFL is closed under complementation?}$

$\text{because interchanging Non final -final and vice versa will not gurantee to give the complement}$ 

$\text{as it is non -deterministic }$


$\text{Why DCFL is NOT closed under intersection?}$

$\text{i will need just 1 counter example to prove that is not closed as closure property says that }$

$\text{this property should be maintained for every example}$

$L_{1}=a^{n}b^{n}c^{m}\text{(DCFL)}$

$L_{2}=a^{m}b^{n}c^{n}\text{(DCFL)}$

$L_{3}=a^{m}b^{n}c^{m}\text{(DCFL)}$

$L_{counter}=L_{1} \cap L_{2} \cap L_{3} = a^{s}b^{s}c^{s}$

$L_{counter} \text{is not DCFL/CFL}$


$\text{Why DCFL is NOT closed under Union?}$

I will prove it using Proof by contradiction and will use above $2$ results

$\text{Let} L_{union} \text{is DCFL}.$

$L_{union} =L_{1} \cup L_{2} \cup L_{3}$

$L_{union}^{'} =L_{1}^{'} \cap L_{2}^{'} \cap L_{3}^{'}$

$\text{let} L_{union}^{'} =L_{Ucomp} \text{which will be DCFL as it is closed under complement}$

$L_{Ucomp}=L_{comp1} \cap L_{comp2} \cap L_{comp3}$

$\text{where} L_{comp1} , L_{comp2}, L_{comp3} \text{are DCFL}$

$\text{hence it proves that DCFL are closed under intersection ,contradiction)}$

edited by

Related questions

3 votes
3 votes
1 answer
1
iarnav asked Nov 1, 2017
580 views
If L1 = Regular L and L2 = CFL then L1 UNION L2?= L1 U L2= Reg L U CFL= CFL U CFL= CFL is it True?
1 votes
1 votes
0 answers
2
Na462 asked Sep 9, 2018
1,872 views
If L1 is CSL and L2 is CFL, then which of the following is correct ?A.L1' - L2 is CSL alwaysB. L1 - L2' is CSL alwaysC. L1 intersection Regular is Regular alwaysD. L1.L2...
1 votes
1 votes
1 answer
3
raviyogi asked Dec 30, 2017
688 views
CFL over a single alphabet are always->A. dcflB. regularC. dcfl but not regulard. non regular