396 views
1 votes
1 votes
L={a^n,b^n,c^m / n>m}

we have to compare n and m everywhere I know till we reach b there will be nothing in the stack BUT generally we can make this language if possible

suppose when we are putting one a into the stack suppose we put Two a's on behalf of one a then the no'of a's 2*n into the stack and the we pop one a for one b after completing allb's still there will be n number of a's will be remaining into the stack then we can compare number of a's and number of c's if and one a or more than one a is remaining in the stack then we can accept the string otherwise we can reject the string

I'm asking this question because in one of the video for the question we were  taking two a's on behalf of one .......

1 Answer

0 votes
0 votes
This is simply CSL, you can not push a's for one b. You have to push 1a for 1b and once you are done with b’s you got stuck on a because in PDA you simply can not go left or save the number of a's.

So finally it is CSL and can be accepted by LBA because of the feature that you can move to either left or right as per the situation. That's why we say that LBA can accept anything.

Related questions

0 votes
0 votes
0 answers
1
sanju77767 asked May 17, 2018
239 views
xx^r /x=[0,1]* , |x|=lHere we have restriction that on length of x should be exactly l If only the language is given How can we say that l is finite or infinite In one of...
0 votes
0 votes
0 answers
2
saptarshiDey asked Jan 22, 2019
539 views
L = {a^(p+q) b^(p+q) a^p , p,q>=0}Which one of the following is true about L?L is a regularL is CFL but not regularL is not a CFL
2 votes
2 votes
2 answers
3
focus _GATE asked Jan 10, 2017
520 views
L={ ai bj ck | i,j,k>=0, i<j<k}CFL OR NOT CFL ??
0 votes
0 votes
2 answers
4
Anmol Verma asked Dec 2, 2016
718 views
Is L={$a^{n}b^{n}c^{m}$ : n>m} context free...???