retagged by
714 views
0 votes
0 votes
Is L={$a^{n}b^{n}c^{m}$ : n>m} context free...???
retagged by

2 Answers

2 votes
2 votes

L={anbncm : n>m};

After comparing a and b the stack will become empty, Now we don't know what is n, so we can't compare again with m.

Hence It is not CFL

0 votes
0 votes

L

anguage L={a^nb^nc^m: n>m} will not be CFL or DCFL.

Bcz when we are going to push all 'a' and going to pop all 'b' against 'a' then stack will contain only epsilon and there is no elements to compare with c inside stack as we are going to compare n to m.

That's why it will not be CFL.

Related questions

2 votes
2 votes
2 answers
1
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
0 answers
2
saptarshiDey asked Jan 22, 2019
538 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
0 answers
3
gari asked Jan 12, 2018
255 views
the condition is 1) (i<=j) or (j<=i) , j=k 2) (i<=j) or (j<=i) ,j=khow should we interpret the condition given ?