An algorithm is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
Characteristics of an algorithm:-
- Finiteness: Total number of steps used in algorithm should be finite.
- Definiteness: Each step of algorithm must be clear and unambiguous.
- Effectiveness: Every step must be basic and essential,
- Input & Output: The algorithm must accept zero or more input and must produce atleast one output.
Example:-
0 Comments