2 2 votes Suppose that L is Context free and R is Regular. $A$) $L – R$ is necessarily Context free $B$) $R – L$ is necessarily Context free Which of the above statement/s is/are true? Theory of Computation context-free-language theory-of-computation identify-class-language + – dd 2.0k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply dd commented Jan 7, 2017 reply Follow flag is it only $A$ ? 1 1 replyShare Kapil commented Jan 7, 2017 reply Follow flag Yes, and 2nd one is false for CFL and even RE but not for others. 3 3 replyShare vijaycs commented Jan 7, 2017 reply Follow flag ^yes. A) True B) False ( not necessarily), because CFL is not closed under complementation. R-L = R INTERSECTION L' 2 2 replyShare srestha commented Jan 7, 2017 reply Follow flag if L is DCFL , then B) is also true. As DCFL closed under complement 1 1 replyShare gatesjt commented Jan 7, 2017 reply Follow flag @kapil u meant R-L is not R.E when L is RE right ? and true when L is recursive right ? 0 0 replyShare Devshree Dubey commented Jan 7, 2017 reply Follow flag If possible pease support ur answer with an example. It'll be helpful indeed. :) 0 0 replyShare Please log in or register to add a comment.
3 3 votes 1) It's closure property. CFL is closed under Regular difference (Even every language is closed under regular difference). 2) R-L is not any standard thing , we have to do calculations to know about this so we can't say anything. Rupendra Choudhary answered May 29, 2017 Rupendra Choudhary comment Share Follow 0 reply Please log in or register to add a comment.