Here is a finite automaton accepting strings with an even number of ``a''s. = {a, b, c}.
(s0, a) = s1 (s0, b) = (s0, c) = s0 (s1, a) = s2 (s1, b) = (s1, c) = s1 (s2, a) = s1 (s2, b) = (s2, c) = s2
Consider input string w. If w ends at state , then the FA accepts w; otherwise, the FA rejects w.
Example: str = bccabaccaba
Accept