2,993 views
1 votes
1 votes
consider following language

L1= {a^nB^b/n>=0}

L2= compliment of L1

choose the correct option regarding the language L1& L2

1. L1 &L2 are context free

2.L1 is context free  but L2 is regular

3.L1 is context free & L2 is contxt sensitive

4. none

2 Answers

0 votes
0 votes

I think in question L1 will be {a^n b^n | n>=0}
If so, then L1 is DCFL
L2 = Complement of L1 = DCFL, because DCFL are closed under complementation.
Hence, answer will be Option 1

Related questions

1 votes
1 votes
1 answer
1