what do you mean by algorithm.
Answers
Answer:
a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
Step-by-step explanation:
☆QuestioN:
What do you mean by algorithm?
☆AnsweR:
An algorithm can be defined as a finite set of step-wise instructions that should be followed to perform a specific task like solving a logical or a mathematical problem.
●More to knoW:
Writing an algorithm:
1. It is written in an English-like language
2. It should have an input.
3. You can use the syntax of the language if you are taking an example of a programming
language.
4. You can include variables.
5. You can define mathematical expressions to calculate result. 6. You can refer to each step by a unique step number.
7. It should perform some action or produce an output.
Characteristics of a good algorithm:
1. Input-It receives an input.
2. Generality-It works on a set of inputs.
3. Definiteness-The steps must be precisely defined.
4. Uniqueness - The results of each step is uniquely defined and depends and the results of the previous steps
only on the input
5. Finiteness-It stops after a finite number of instructions have been executed.
6. Output - It produces the desired output.