For proper understanding Introduction to Automata Theory, Languages and Computation By Jeffery D. Ullman, John E. Hopcroft and For WBUT semester preparation the automata book By Arnab Biswas