in Theory of Computation edited by
10,553 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 :)
in Theory of Computation edited by
10.6k views

1 comment

Is this a CFL?
1
1

3 Answers

4 votes
4 votes
Best answer

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

1 comment

what will be the steps then for CSL...??
0
0
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

2 Comments

PDA supports only 1 comparison.
0
0
More than one stack becomes LBA so it is CSL
0
0
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