An algorithm is a step by step procedure for solving a problem. It is widely used throughout all areas of information technology for data processing, and mathematical operations.
an algorithm should have the following characteristics:-
An algorithm must contain a zero (0
) or more well-defined input.
Whenever any input is given to an algorithm, then it should produce at least one output.
An algorithm must complete after finite number of steps and it should give result in finite time.
Each steps of an algorithm must be clear and unambiguous.
Every instruction of an algorithm must be feasible.