A nondeterministic machine that checks that the third symbol from the end is an
a
. Since we are counting symbols from the start, it is natural to use states 0,1,2,3.
In[1]:=
M=
PositionFA
"a",-3,
Alpha
[2]
In[2]:=
M=FA
type:NFA
states:4
alphabet:2
;
In[3]:=
M//
StateList
Out[3]=
{0,1,2,3}
Determinization produces new states that are sets of old states. By default, the states are renumbered so that the old machine effectively has state set