What are the Advantages and Disadvantages of Algorithm ?
In simple words Algorithms is ‘Logic or Procedure of solving any Problem.
Standard Defination : “ An algorithm is a procedure or formula for solving a problem, based on conductiong a sequence of specified actions. A computer program can be viewed as an elaborate algorithm”.
Advantages of Algorithms:
It is a step-wise representation of a solution to a given problem, which makes it easy to understand.
An algorithm uses a definite procedure.
It is not dependent on any programming language, so it is easy to understand for anyone even without programming knowledge.
Every step in an algorithm has its own logical sequence so it is easy to debug.
By using algorithm, the problem is broken down into smaller pieces or steps hence, it is easier for programmer to convert it into an actual program.
Disdvantages of Algorithms:
Alogorithms is Time consuming.
Difficult to show Branching and Looping in Algorithms.
Big tasks are difficult to put in Algorithms.
Characteristics of Algorithms:
Precision – the steps are precisely stated(defined).
Uniqueness – results of each step are uniquely definedand only depend on the input and the result of the precedingsteps.
Finiteness – the algorithm stops after a finite number ofinstructions are executed.
Input – the algorithm receives input.
Output – the algorithm produces output.
Generality – the algorithm applies to a set ofinputs.