Algorithms provide a mapping from the input values to the output. This is done by providing step by step instructions needed to solve a problem.
The steps of designing an algorithm are:
Specify what the algorithm will do
Design the algorithm
Check the algorithm
Analyse the algorithm
Implement the algorithm
Test the resulting program