retagged by
386 views
2 votes
2 votes

Suppose L1 = CFL and L2 = Regular, We are to find out whether L1 – L2 = CFL or non CFL.

I have 2 approaches to this question and I am confused which is wrong:

  1. L1 – L2 = L1 intersection L2’ 
    1. L2 being Regular L2’ is also Regular so CFL intersection Regular = CFL
    2. L2 being Regular L2’ is also Regular and every Regular Language is also CFL so CFL intersection CFL = non CFL.

Can somebody please clarify my doubt?

retagged by

Please log in or register to answer this question.

Related questions

3 votes
3 votes
2 answers
1
3 votes
3 votes
1 answer
3
iarnav asked Nov 1, 2017
585 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?