Deterministic finite automaton

w =   F =



Logic
01
>* ABA
* BCA
 CCC