3,491 views
4 4 votes
$\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, CFL or CSL?

2 Answers

0 0 votes

first one is CSL

second one is CFL

third one is also CFL as when we are removing “a” from stack then only “m” a’s can be popped so that we are left with “k” a’s in stack. Then we push n b’s in the stack making total n+k b’s which can be further popped for c’s Hence 1 stack is sufficient. 

Position:
Show:

Related questions

1 1 vote
2 answers 2 answers
1.6k
1.6k views
atul_21 asked Dec 21, 2017
1,589 views
$L1 = \bigl\{a^mb^nc^pd^q \mid m+q = n+p \bigr\}$$L2 = \bigl\{a^mb^nc^pd^q \mid m+p = n+q \bigr\}$1. L1 is DCFL, L2 is not2. L2 is DCFL, L1 is not3. Both are not DCFL...
1 1 vote
1 1 answer
580
580 views
vedantk asked Jan 10, 2024
580 views
If it’s DCFL then also construct the DPDA ?
1 1 vote
2 2 answers
1.9k
1.9k views
atulcse asked Jan 21, 2022
1,903 views
Is the following language a DCFL? Please explain your reasoning.
0 0 votes
1 1 answer
1.3k
1.3k views
shivangi5 asked Dec 2, 2017
1,349 views
Consider the following languages:L1={abna2n|n>=0}L2={aabna3n|n>=0}Why L1UL2 is DCFL please explain?