edited by
391 views
0 votes
0 votes
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 is generated by the $\text{CFG}$  $G = (V, \Sigma, R, S).$ Add the new rule $S\rightarrow SS$ and call  the resulting grammar $G'.$This grammar is supposed to generate $A^{*}.$
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
admin asked May 4, 2019
269 views
Let $\Sigma = \{a,b\}.$ Give a $CFG$ generating the language of strings with twice as many $a’s$ as $b’s.$ Prove that your grammar is correct$.$
0 votes
0 votes
1 answer
3
admin asked May 4, 2019
373 views
Let $C = \{x\#y \mid x, y\in\{0,1\}^{*}$ and $x\neq y\}.$ Show that $C$ is a context-free language$.$
0 votes
0 votes
1 answer
4