0 votes 0 votes L= {a^nb^2nc^n| n>=0} Isn't, it CFL ???? saif asked Dec 25, 2018 saif 266 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Shobhit Joshi commented Dec 25, 2018 reply Follow Share No, it's not. For $a^ib^jc^k$, we have to compare $i=2*j$ and $2*j=k$. Cannot be done with a single stack 1 votes 1 votes saif commented Dec 25, 2018 reply Follow Share But consider that procedure, Push all the a's in the stack and when the first b comes start poping a's after that when the stack becomes empty then start pushing the b's into the stack and finally when c comes start poping the b's too. If finally the stack is empty then language is accepted otherwise not... What i am wrong please mention. 0 votes 0 votes Shobhit Joshi commented Dec 25, 2018 reply Follow Share $a^3b^8c^5$ you procedure will accept this string, but it doesn't belong to the language. What you are checking is if $a^ib^jc^k$ then $i+k=j$ 2 votes 2 votes saif commented Dec 25, 2018 reply Follow Share ok, Got It Thanks, Brother. :) 0 votes 0 votes Please log in or register to add a comment.