Computer Science, asked by nishat232007, 2 months ago

Define Algorithm? Explain in detail with example. ​

Answers

Answered by Priyakshipriya
2

Answer:

An algorithm is a step procedure to solve logical and mathematical problems. A recipe is a good example of an algorithm because it says what must be done, step by step. ... The words 'algorithm' and 'algorism' come from the name of a Persian mathematician called Al-Khwārizmī (Persian: خوارزمی, c. 780–850).

Answered by wildfam
6

Answer:

a procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps that frequently involves repetition of an operation

A step-by-step solution.

Each step has clear instructions. Like a recipe.

Example: one algorithm for adding two digit numbers is:

1. add the tens

2. add the ones

3. add the numbers from steps 1 and 2

So to add 15 and 32 using that algorithm:

1. add 10 and 30 to get 40

2. add 5 and 2 to get 7

3. add 40 and 7 to get 47

Long Division is another example of an algorithm: when you follow the steps you get the answer.

Similar questions