What is the Definition of An Algorithm?

And algorithm is a mathematical function that would include a set of rules in order to solve a problem or come to a result desired. The most common use of algorithms are in computer programming.