Deterministic finite automaton

w =   F =



Logic
01
> ABA
BAC
* CCC