Match the algorithm to the type of learning algorithm.