516 views
1 votes
1 votes

Please Explain in detail.

1 Answer

0 votes
0 votes
L2 and L4 will be CFL......as in L2 only j=k needs to be calculated while i and j are independent..........and in L4 first push a in stack and with each occurrence of b remove a if a=b then check for k to be even by pushing and popping c.....

So ans will be 2

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
practicalmetal asked Mar 15, 2023
496 views
Is the following language context free:The set of all strings with number of a’s equal to number of b’s and the sum of a’s and b’s to be divisible by 3.