I came up with three three-character words:
...
-..
--.
I don't see how to create the fourth one.
That's what I got too....the fourth one is "-.." which already exist so it doens't count.
I have another question and this one is little harder.
<S> = a<S>a | b<S>b | a | b
Q: list all the 5-character strings that are in this language?
My answer is there are four 5-character strings in this language and they are "ababa" , "abbba" , "baaab" , "babab".....is this right??
<S> = a<S>a
<S> = b<S>b
<S> = a
<S> = b
so therefore, <S> = ab<S>ba = ababa or abbba
and <S> = b<S>b = ba<S>ab = baaab or babab