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:
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:
- Each and every instruction should be precise and unambiguous.
- Each instruction should be such that it can be performed in a finite time.
- One or more instructions should not be repeated infinitely. This ensures that the algorithm will ultimately terminate.
- After performing the instructions that are after the algorithm terminate the desired results must be obtained.
- 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.
- 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
- An algorithm should be universal and lead to a unique solution of a problem.
- 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.
- 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
Post a Comment