I have a context-free grammar defined: S -> aS, S -> Sb, S -> a
I thouht that correct answer would be: L(G) = {aab}, because: S -> aS -:> aSb -> aab but isn't. Why, and what is correct answer?
I have a context-free grammar defined: S -> aS, S -> Sb, S -> a
I thouht that correct answer would be: L(G) = {aab}, because: S -> aS -:> aSb -> aab but isn't. Why, and what is correct answer?
Copyright © 2021 JogjaFile Inc.