information about computer technology and about computer languages.

Thursday, 3 December 2020

what is Algorithm ?

                                              




   Algorithm

An algorithm is a set of finite rules or instructions designed to perform a specific task or operation. It define step by step how a task is to be executed. This can be a simple process or a complex operation.
A programing algorithm describe how to do something and your computer will do exactly the same. Programing algorithm is not a computer code .you can write it any language you speak.

Characteristics of Algorithm

  • Input
Valid inputs are clearly specified. An algorithm should have 0 or more well defined inputs.
  • Output
It can be proved to produce the correct output given a valid input. An algorithm should have 1 or more well defined outputs.
  • Finiteness
Each step should be performed in a finite time. Steps should not be repeated infinitely. Terminates after a finite number of steps.
  • Independent
It could be run on any of programming language. it must be generic, simple and practical.
  • Clear and Unambiguous
Each and every step should be clear and precise. All those steps that are required to get to output must be feasible with the available resources.


No comments:

Post a Comment