Physics of Artificial Intelligence