0
S -> Sa | SbSa | ε

I found a similar question but i don't understand : http://automatasteps.blogspot.co.id/2007/08/unambiguous-grammar.html

How do i change this to the unambiguous one?

My string is bbaaa

Ricky
  • 21
  • 1
  • 3
  • 2
    Your linked question is not similar; it's identical. So it would help if you said what you didn't understand, since it provides a precise answer to your question, and just repeating it here isn't going to help you. – rici May 10 '18 at 17:54
  • I meant, he used an example for the answer and i don't understand how + could change to * in that example. Can i get the answer for my question, because he just put an example and it is totally different. – Ricky May 10 '18 at 17:59
  • The answer to your question comes before the example. He provides precisely the unambiguous grammar corresponding to your ambiguous grammar, and a very brief explanation of how he derived it. Then he provides *another* example of making a *different* ambiguous grammar unambiguous, which you could either ignore or try to understand. (If you really want to learn about this stuff, trying to understand would be a good start.) – rici May 10 '18 at 18:09

0 Answers0