2,183 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

605
views
1 answers
3 votes
iarnav asked Nov 1, 2017
605 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?
2.0k
views
0 answers
1 votes
Na462 asked Sep 9, 2018
2,002 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 is CSL but not CFL
737
views
1 answers
1 votes
raviyogi asked Dec 30, 2017
737 views
CFL over a single alphabet are always->A. dcflB. regularC. dcfl but not regulard. non regular
599
views
1 answers
0 votes
sumit chakraborty asked Nov 29, 2017
599 views
If a language L1 is given as anbn and L2 is given as {a,b}* , then the language L1 - L2 will be : regular or CFL and why ?My doubt is that since ... of CFL with regular is closed and the language will be CFL.Which one is right and why ?