An **Algorithm** is a systematic, step-by-step procedure, such as a mathematical formula, that guarantees a solution to a problem of a certain type if the algorithm is appropriate and executed properly.

Other /More definition:

Algorithm refers to a learned set of rules that always leads to the correct solution of a problem. Algorithms are sequences of operations that may be repeated over and over again and that, in theory, guarantee the solution to a problem