Last modified 2004.11.23
Now, make an FSA that recognizes w such that (bottom(w))^R = (top(w)+1)^R, where x^R = xn xn-1 ... x2 x1 for x = x1 x2 ... xn. That is, the FSA must accept strings of tiles such that if the top and bottom string are read backwards (LSB first), the bottom is the top incremented by one.
a) Give a DFA for L with three states.
b) Convert that DFA into a regular expression for all binary strings equal to 2 modulo 3, using the GNFA construction technique.