Title: Fundamental of Automata for Codes Analysis