The term of ai is missleading. There are a lotts of different concepts people associate with ai. Classical ai is just some search for the optimal solution in the state space, often represented as a tree. However ai in common sense refers to a system that figures stuff out by it self using supervised, unsupervised or reinforcement learning.