The language of non-negative integer constants in C, where numbers
beginning with O are octal constants and other numbers are decimal
constants.
O[0-7]+ | [0-9]+
(1) Why are you not surprised that there is no regular expression
defining strings of a's and b's that are palindromes
(the same forward as backward). Hint: Consider the number of finite-automata
states required.
Requires an infinite number of states: a, aa, aba, abba, ... because two
ends about a center point must be equal. Can only specify by listing each
case.
(4) Explain in informal English what each of these finite-state automata
recognizes.
a. State 9 should be final is 0110
State 10 is 1xxx, 00xx, 010x or 0111 where
x =0|1
b. a or 5n+1 a's for n=1 to infinity