retagged by
3,876 views

2 Answers

Best answer
5 votes
5 votes

Consider for the case  $i >= j$

Push A for each a
Pop A for each b
Push C for each c
Pop C first and then A for each d. 

Accept if stack is empty when input finishes. 

For the case $i < j$

Push A for each a
Pop A for each b until stack becomes empty
Push B for each b after that
Pop B for each c until stack becomes empty
Push C for each c after that
Pop C first and then B for each d.

Accept if stack is empty when input finishes. 

So, clearly $L$ is CFL. But we can combine the two cases and there is no guess needed making $L$ a DCFL. 

selected
2 votes
2 votes
The language can be like a^n b^m c^n d^m. and cannot put in one stack. So it is not CFL

Related questions

596
views
1 answers
0 votes
practicalmetal asked Mar 20, 2023
596 views
Is the following language CFL :{ ww | w in (a+b)* and |w| <1000 }
549
views
1 answers
0 votes
practicalmetal asked Mar 15, 2023
549 views
Is the following language context free:The set of all strings with number of a’s equal to number of b’s and the sum of a’s and b’s to be divisible by 3.
217
views
0 answers
0 votes
952
views
2 answers
2 votes
Sambhrant Maurya asked Oct 18, 2018
952 views
Consider the following CFG 'G'S--> aA/bSS/SSA--> aAb/bAa/AA/εThe language generated by G is:a)Set of all strings with atleast one 'a'b)Set of all strings ... )Set of all strings with atleast one more 'a' than number of b'sd)None of these