‹ Class 9 · Ch 11
The World of Algorithms · Principle 1 of 29

A recipe for an answer

Algorithm

Stuck? Ask Guru

NCERT: 11.1.1 Adding Numbers Digit by Digit

Think

Counting dots

To add 5 + 7, we can draw 5 dots, then 7 more dots, and count them all: 12.
Now imagine adding 473 + 695 this way!

How would you add 473 + 695?

What this lesson covers

The idea

An algorithm is a step-by-step procedure to arrive at an answer, described by writing down the steps as precisely as possible.

Counting dots

To add 5 + 7, we can draw 5 dots, then 7 more dots, and count them all: 12. Now imagine adding 473 + 695 this way!

How would you add 473 + 695?

  • Draw 1168 dots and count them
  • Follow fixed steps, column by column
  • Either way is just as quick

Follow the steps

Follow the book's steps: start with the rightmost column, write the units digit of each column's sum, and carry 1 to the next column when the sum is 10 or more.

Steps, written precisely

An algorithm is a step-by-step procedure to arrive at an answer. We describe it by writing down the steps as precisely as possible.

The book writes the addition algorithm like this: 1. Write the numbers one below the other, digits aligned from right to left. 2. Add the rightmost digits. Write the units digit of the sum below them; carry 1 if the sum is 10 or more, otherwise carry 0. 3. Move to the next column on the left. Add the two digits and the carry, in the same way. 4. Repeat Step 3 until there are no more digits on the left. 5. If the carry is 1, write 1 to the left of the bottom row.

Notes

An algorithm is a step-by-step procedure to arrive at an answer, written down as precisely as possible. Adding column by column is one.

Check yourself

What makes column-by-column addition an algorithm?

Adding 473 + 695: the tens column gives 7 + 9. Which digit is written below the tens column?

Answer: 6

7 + 9 = 16, which is 10 or more, so write 6 and carry 1.

After all three columns of 473 + 695, the carry is 1. What is the answer?

Answer: 1168

The columns give 1, 6, 8 and the last carry gives a 1 on the left: 1168.

  • It is a step-by-step procedure, with each step written down precisely — correct. Yes. Anyone who follows the steps gets the answer.
  • It gives a quick estimate of the answer. It gives the exact answer, not an estimate.
  • It only works for small numbers. The same steps work for numbers of any size.