edited by
10,699 views
3 votes
3 votes
My understanding :

We can create PDA as follows

for every 'a' push operation and on 'b' pop operation and again on 'c' push operation and  on seeing 'd' pop operation.

please correct me , if i am wrong.

I am sorry, if it is not important.

Thanks lot :)
edited by

3 Answers

Best answer
4 votes
4 votes

In PDA if you pop a for every b, then after number of a's and b's are equal  Stack will be empty.

Then you have nothing to compare the number of incoming c's with previously read number of a's or b's.

So, it is not sure that number of a's or b's will be equal to that of c's.

selected by
0 votes
0 votes
Pda supports only two comparisons... For ur ques pda requires more than one stack.. Hence above one is CSL
edited by
0 votes
0 votes
If we see..

L1: a^mb^nc^n|n,m>=1 CFL
L2:a^mb^mc^n|n,m>=1 CFL

L: L1 intersection L2 =  a^nb^nc^n |n>=1 =CSL
That is not clouser under intersection

Bcoz PDA NOT POSSIBLE - WE NEED 2 COMPRESSION AT A TIME.
i'e 2 stack required.....but in PDA ONLY NEED 1 STACK

There for ANS is CSL ;

Related questions