Write about Alogrithm

Question: Write about Algorithm.

Answer: Algorithm is a sequence of precise and unambiguous instructions solving a problem infinite number of operations; these instructions are in use language i.e. independent of any programming language.

Characteristics- An algorithm represents the logic of the processing be performed. However, in order to qualify as an algorithm, a sequence of instructions must process the following characteristics:

  1. Each and every instruction should be precise and unambiguous.
  2. Each instruction should be such that it can be performed in a finite time.
  3. One or more instructions should not be repeated infinitely. This ensures that the algorithm will ultimately terminate.
  4. After performing the instructions that are after the algorithm terminate the desired results must be obtained.
Properties: the following are the important properties of an algorithm

  1. An algorithm should terminate after a finite number of steps. Means that when it is executed, it should come to a stop after executing a finite number of an assignment, decision and repetitive step.
  2. An algorithm should be simple, each step of the algorithm should precisely defined that is the step must be unambiguous so that the computer understands them properly
  3. An algorithm should be universal and lead to a unique solution of a problem.
  4. An algorithm should take certain precise inputs or initial data and output should be generated in the intermediate as well as the final steps of the algorithms. It should also have a capability to handle some unexpected situations which may arise during the solutions of a particular problem.
  5. An algorithm should be complete in  itself. That is, it should be able solve all problems of a particular type (for any input data) for which designed. 


Comments

Popular posts from this blog

Flowchart...

Rules of Flowchart

Program Development PART 3