An AI algorithm is a set of instructions or rules that enable machines to work. Learn about the main types of AI algorithms and how they work.