Given the following grammar in BNF:
string→ string string | a
this corresponds to the set equation:
S = SS ∪ {a}
Show that the set S0= {a, aa, aaa, aaaa, . . .} is the smallest set satisfying the equation. (Hint: First show that S0does satisfy the equation by showing set inclusion in both directions. Then, using induction on the length of strings in S0, show that, given any set S’ that satisfies the equation, S0must be contained in S’.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here