retagged by
435 views
2 votes
2 votes
I know that if L1 is regular and L2 is CFL then L1 intersection L2 is always CFL.

But if we go according to hierarchy then if L1 is regular then it should be CFL so L1 intersection L2 is CFL intersection CFL and is not necessarily CFL as CFL's are not closed under intersection.

My question is why is there a contradiction when I use this approach?
retagged by

1 Answer

1 votes
1 votes

yes basically When you say,that every Regular is CFl and Cfl intersection CFL...... Completely two different things

CFL L1 intersection CFL L2(here may be some languages,which are not regular) so it is not closed under intersection..But why??

beacuse L2 may be has some complement which is Not even CFL(as it is not closed in colplement also)

But CFL L1 intersection Regular R1 .

Yes here R1 is also CFL ,but we have that gurantee that R1' (i.e. complement) will also  be in cfl ,coz regulars are closed under complement...so intersection have all elements in CFL

hope this clears your doubt

Related questions

1 votes
1 votes
2 answers
1
rahul sharma 5 asked Nov 20, 2017
1,257 views
Where does NP hard / NP complete problems fits in the Chomsky hierarchy ? Is there any relation of Np hard problems with RE languages?
1 votes
1 votes
1 answer
2
learner_geek asked Aug 2, 2017
536 views
Is below given details true or false??
1 votes
1 votes
0 answers
3
Hira Thakur asked Aug 29, 2016
272 views
the language generate by the grammer S→SS/aSb/abis accepted by___a. DPDAb.PDAc.LBAd turing machine1. D>C>B>A2. A>B>C>D3. B>D>A>B4. D>A>B>C
2 votes
2 votes
2 answers
4