An algorithm is any well defined computational procedure that takes some value, or a set of values, as input and produces some value, or set of values, as output.
An algorithm is any well defined computational procedure that takes some value, or a set of values, as input and produces some value, or set of values, as output.