an algorithm is used for solving a problem.