edited by
1,893 views

2 Answers

Best answer
8 votes
8 votes

Both are dcfl, we have dpda for them

1. Read 2 $a's$ and push 1 $a$, we have have of $a's$ on stack

Now If we get $c$, it means we have double count of $b's$ than those of $a's$ on stack. So on reading two $b$ pop one $a$ ( means do nothing for one $b$, pop one $a$ with one $b$) 

​Or, if we get $d$, it means we have same number of $b's$, those of $a's$. So pop one $a$ on reading one $b$. 

​Given $c$ or $d$,  make clear what to do, it is deterministic. 

2. is also dcfl, push one $a$ on reading 3 $a$, pop one $a$ on reading 3 $b's$. 

selected by
–1 votes
–1 votes
1.Union of 2CFL will be NCFL

It is a NCFL

2.DCFL
edited by

Related questions

1 votes
1 votes
0 answers
1
4 votes
4 votes
2 answers
2
srestha asked Jun 22, 2018
1,629 views
$\left \{ a^{m+n}b^{m+n}c^{n}|m,n\geq 1 \right \}$$\left \{ a^{m+n}b^{m+n}c^{k} |m,n,k\geq 1\right \}$$\left \{ a^{m+n}b^{m+k}c^{n+k} |m,n,k\geq 1\right \}$Which one DCFL...
1 votes
1 votes
1 answer
3
pranab ray asked Dec 9, 2017
712 views
0 votes
0 votes
1 answer
4
shivangi5 asked Dec 2, 2017
883 views
Consider the following languages:L1={abna2n|n>=0}L2={aabna3n|n>=0}Why L1UL2 is DCFL please explain?