Design and Analysis of Algorithms
Write the characteristics of algorithm
Ans: Following are the characteristics of a good algorithm :
- Independent - It should be independent of any programming language.
- Input - It should have some input.
- Output- It must produce an output for every input.
- Finiteness - It must complete execution in a finite amount of time.
- Unambiguous - Every step should be clear and unambiguous.
- Feasible - It should be feasible to implement with the available resources.