623 views
0 votes
0 votes

If L1 is context free and L2 is not context free, then L1 ∩ L2 is context free.

Is this true or not?

2 Answers

0 votes
0 votes
No..in worst case it will not be CFL..

L1 intersection L2= higher order language among two..
0 votes
0 votes
take an example

L1= (a^n b^n | where n >=1  )   //CFL

L2=(a^n b^n c^n| where n >=1 )  // NCFL

there intersection are not CFL

BUT if

L1= (a^n b^n | where n >=0  )   //CFL

L2=(a^n b^n c^n| where n >=0 )  // NCFL

then there intersection will be empty language which is regular which is CFL

hence we may contradict here

 

BUT we always need do focus on worst case

so this statement is FALSE

Related questions

130
views
0 answers
0 votes
dazeeee asked Apr 3
130 views
Give a context-free grammar for each of the following languages. Consider, Σ={0,1}.A. The language of strings that start with 1B. The language of strings of the form WWR C. The ... | j is a multiple of four or i = 3 + 2j where i, j ≥ 0}
401
views
1 answers
1 votes
practicalmetal asked Mar 20, 2023
401 views
The complement of the languages:i) {ww | w in (0+1)*}ii) {$a^n b^nc^n$ | n>1} area) Context Free b) Not Context Free c)are DCFL’s d)None
586
views
1 answers
0 votes
swami_9 asked Jul 16, 2022
586 views
Why the complement of a CFL is CSL?
315
views
1 answers
1 votes
Abhipsa asked Jan 22, 2019
315 views
Is this a deterministic context free language (DCFL) ? $a^{k}$ | k is evenThanks!