I am trying to solve some problems in An Introduction to Formal Languages and Automata, by Peter Linz. In Section 2.1 (Deterministic Finite Acceptors), I cannot write the automaton and need help to solve it.
Question 17-(f), Chapter 2:
L = {w : |na(W) - nb(W)| % 3 < 2}
na
is the number of a
characters in the word,
nb
is the number of b
characters in the word.
I have solution but I don't know how to draw it here.