Mathematical Methods in Artificial Intelligence