An algorithm is a collection of steps to solve a particular problem.