Definition of Algorithm
Algorithm must have the following five characteristic features:
1. Input
2. Output
3. Definiteness
4. Effectiveness
5. Termination.
Thus, an algorithm can be described as a sequence of definite & effective instructions, which terminates along the production of correct output from the given input.