Deterministic finite automaton

w =   F =



Logic
01
> ABC
* BAB
* CAC