If you want the get some basic informations about the AI then take a deeper look here: http://en.wikipedia.org/wiki/Artificial_intelligence

For a racing game or a 1st-person game (shooter?) I don't think you should implement AI. Some good managed triggers and a pathfinding (for the shooter) should do it.