edited by
276 views

1 Answer

0 votes
0 votes
number of a's=2*number of b's

S->aaSb | baSa| aSba | SS | ε

Related questions

329
views
0 answers
0 votes
admin asked May 4, 2019
329 views
Let $CFG$ $G$ be the following grammar$.$ $S\rightarrow aSb \mid bY \mid Y a$$Y\rightarrow bY \mid aY \mid \epsilon$Give a simple description of $L(G)$ in English$.$ Us...
406
views
0 answers
0 votes
admin asked May 4, 2019
406 views
Give a counterexample to show that the following construction fails to prove that the class of context-free languages is closed under star. Let $A$ be a $\text{CFL}$ that...
386
views
1 answers
0 votes
admin asked May 4, 2019
386 views
Let $C = \{x\#y \mid x, y\in\{0,1\}^{*}$ and $x\neq y\}.$ Show that $C$ is a context-free language$.$
2.0k
views
1 answers
0 votes
admin asked May 4, 2019
2,002 views
Convert the following $\text{CFG}$ into an equivalent $\text{CFG}$ in Chomsky normal form,using the procedure given in $\text{Theorem 2.9.}$$A\rightarrow BAB \mid B \mid ...