Search Automaton