I want to change the grammar in to Chomsky Normal Form(CNF).
This is example
S--> AB | ɛ
A--> aASb | a
B--> bS
I try to solve this
S --> [A] [B]
[A] --> [aA] [Sb] | [a]
[aA] --> [a] A
[Sb] --> s [b]
[a] --> a
[b] --> b
I am not sure about the answer. Could anybody tell me if it is right or wrong?