Algorithm ======== An algorithm is “a step-by-step procedure for accomplishing some task An algorithm can be given in many ways. For example, it can be written down in English (or French, or any other natural language). However, we are interested in algorithms which have been precisely specified using an appropriate mathematical formalism--such as a programming language. Every algorithm should have the following five characteristics: ================================================ 1.Input: The algorithm should take zero or more input. 2. Output: The algorithm should produce one or more outputs. 3. Definiteness: Each and every step of algorithm should be defined unambiguously. 4. Effectiveness: A human should be able to calculate the values involved in the procedure of the algorithm using paper and pencil. 5. Termination: An algorithm must terminate after a finite number of steps
Posted on: Thu, 04 Sep 2014 09:54:05 +0000