Algorithm / Pseudo Code
Algorithm is a method of representing the step by step logical procedure for solving a problem. It is a tool for finding the logic of a problem.
Algorithm Properties:
1. Finiteness: an algorithm must terminate in a finite number of steps.
2. Definiteness: Each step of an algorithm must be clear and easy to understand (unambiguous).
3. Effectiveness: Each step must be effective, in the sense that should be primitive (easily convertible to program).
4. Generality: The algorithm must be complete in itself so that it can be used to solve all problems of a specific type for any input data.
5. Input / Output: Each algorithm must take zero, one or more quantities as input data and produce one or more output values.
No comments:
Post a Comment