Described the basic steps of the algorithm.