retagged by
563 views

1 Answer

4 4 votes

Given language L = {an+m bn+m cm  | n,m >= 0}

(or)                  L = {am+n b n+m cm | n ,m >= 0}        ..........(2)

(or)                  L = {an+m bm+n cm  | n,m >= 0}         ...........(3)

I have written in different ways to make understand if we can model a PDA using (2) and (3) .First let us try to construct using (2) 

a) In this we push first m a's into the stack , the  n  a's into the stack .After this b is read and hence n a's are popped then m a's .This completes the reading of 'b' and involvement of stack is over as well.So it can keep into memory what is the "m" 

Similarly we can also proceed for the next representation that I have shown.Both are one and the same.Hence since we are not able to keep track of variable 'm' as an+m bn+m part is over and hence stack is empty , the language hence cannot be modelled using a single stack and hence cannot be modelled using a PDA.

Hence the given language is not CFL.

Position:
Show:

Related questions

1 1 vote
0 0 answers
555
555 views
HenryAsks21 asked Apr 30, 2022
555 views
I am trying to construct a CFG for this following langauge: L = $\{0^i 1^j | i \neq j \ and \ i, j 0\}$, this is what I came up with:$ S \rightarrow A \ | \ B $$A \righ...
1 1 vote
1 answers 1 answer
2.3k
2.3k views
aditi19 asked Mar 7, 2019
2,287 views
what is the CFG for the language L=w where number of a’s in w+number of b’s in w=number of c’s in whow to approach this?
0 0 votes
1 1 answer
1.9k
1.9k views
aditi19 asked Mar 2, 2019
1,850 views
S->A | BA→ εB->aBbB->bwhat is the complement of the language of this grammar?
3 3 votes
2 2 answers
168
168 views
GO Classes asked Sep 1
168 views
Consider the CFG$$\begin{aligned}S &\to VS \mid cT \\T &\to VT \mid cU \\U &\to \epsilon \mid VU \\V &\to a \mid b\end{aligned} $$Which language is generated by this gram...