Simulate a deterministic finite automata with given inputs, and construct a text searcher DFA