edited by
370 views
1 votes
1 votes
Give CFG for the following language

L =$ {(a^{m})(b^{m+n})(c^{n}) | m,n= 0,1,2,.....}$
edited by

1 Answer

Best answer
4 votes
4 votes
S$\rightarrow$XY

X$\rightarrow$aXb|$\epsilon$

Y$\rightarrow$bYc | $\epsilon$
selected by

Related questions

0 votes
0 votes
1 answer
1
The Capricorn asked Mar 17, 2018
245 views
Write the CFG (Context Free Grammar) for the given condition:((a^n).(b^(2n + 1)))
0 votes
0 votes
1 answer
2
Jeevesh asked Nov 12, 2018
1,004 views
What should be the approach to draw the DFA - "All strings that have exactly one double letter in them" on symbols {a,b}.
0 votes
0 votes
0 answers
4
The Capricorn asked May 28, 2018
204 views
Construct a Turing Machine that computes length of a given input string. For Example, if the input is $abbaab$, the output should be $abbaab00110$.