An algorithm is a procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed.
An algorithm is merely the sequence of steps taken to solve a problem. The steps are normally "sequence," "selection, " "iteration," and a case-type statement.