2,491 views

2 Answers

Best answer
4 votes
4 votes

1) true

L1 & L2  both are CFL and we know that...every CFL is also CSL..so L1 & L2  both are CSL

nowL1 - L2  can be written as below

L1 - L2 ====> L1 ∩ L2

and we also know that CSL  is  closed under COMPLEMENT as per https://en.wikipedia.org/wiki/Immerman–Szelepcsényi_theorema.... so we can conclude  L2 is  CSL...

and hence L1 - L2 is also  CSL..

2) TRUE

L1 & L2  both are CFL and we know that...every CFL is also CSL..so L1 & L2  both are CSL

now CSL is closed under INTERSECTION operation....

hence .... L1 ∩ L2    is CSL.

3)TRUE

L1 & L2  both are CFL and we know that...every CFL is also RECURSIVE..so L1 & L2  both are RECURSIVE...

L1 - L2 ====> L1 ∩ L2

and RECURSIVE language is closed under both INTERSECTION &  COMPLEMENT..hence L1 - L2 is RECURSIVE

4)true

L1(compliment)  ... is CSL because CSL is  closed as per https://en.wikipedia.org/wiki/Immerman–Szelepcsényi_theoremaunder complemention..

selected by
4 votes
4 votes

All are correct.

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
1 answer
2
1 votes
1 votes
2 answers
3
ggwon asked Dec 29, 2022
727 views
L = {$a^{n+m}b^{n}a^{m} | n,m \geq 0$}Is the above language DCFL or CFL ?
2 votes
2 votes
0 answers
4