Artificial Intelligence is the science of making a machine intelligent. To make a machine intelligent we need some way of processing the data and environment. Everything in AI follows an algorithm. At the basic level, there are simple but impressive algorithms. A* algorithm is one of the basic algorithms of AI. A* employs a heuristic function to find the solution to a problem. For more info on AI and its algorithms, get the book "Artificial Intelligence: A Modern Approach".