These books are not necessary to buy, but are all excellent AI textbooks. The full text of the Poole & Mackworth is available online for free.
Artificial Intelligence: Foundations of Computational Agents, second edition
Authors: David L. Poole and Alan Mackworth
Artificial Intelligence: A Modern Approach
Authors: Stuart Russell and Peter Norvig