0
$\begingroup$

I have given this question as home assignment. I tried a lot to solve it but couldn't found any solution. Please help Thanks in Advance!

$\endgroup$
  • 1
    $\begingroup$ What have you tried? Where did you get stuck? Please add any attempts you have made towards solving the assignment. $\endgroup$ – dkaeae Dec 19 '18 at 21:03
0
$\begingroup$

Hint, the grammar $S \to a S c \mid b$ generates the language $\{a^n b c^n : n \geq 0\}$. Can you you adapt this? Do you understand why it generates that language?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.