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

Digits, not size

Efficiency grows with digits, not value

Stuck? Ask Guru

NCERT: 11.1.1 Adding Numbers Digit by Digit

Think

Two ways to add

Suppose we can count one dot per second, or add one column (two digits and a carry) in 15 seconds.
The book adds 33 + 27, 334 + 272 and 3347 + 2729.

Going from 334 + 272 to 3347 + 2729, the time to count dots …

What this lesson covers

The idea

Adding digit by digit needs work proportional to the number of digits, whereas counting dots grows with the value of the numbers.

Two ways to add

Suppose we can count one dot per second, or add one column (two digits and a carry) in 15 seconds. The book adds 33 + 27, 334 + 272 and 3347 + 2729.

Going from 334 + 272 to 3347 + 2729, the time to count dots …

  • grows about 10 times
  • grows by about 15 seconds
  • stays about the same

Time both ways

For each sum, compare the time to count every dot with the time to add digit by digit. Watch what one more digit does to each.

Columns grow slowly

Adding digit by digit takes work in proportion to the number of digits. Counting dots takes work that grows with the value of the numbers.

From 3-digit to 4-digit numbers: 10 times as many dots, but only 1 more column. 5-digit numbers would need 100 times as many dots as 3-digit numbers, but only 2 more columns. Counting 3347 + 2729 takes 6076 s, over 1 hour 40 minutes. Digit by digit: 4 × 15 s, about 1 minute.

Notes

The work of the addition algorithm grows with the number of digits, not with the size of the numbers. One more digit: one more column.

Check yourself

Two numbers each get one more digit. What happens to the work for the addition algorithm?

At 1 dot per second, how many seconds does it take to count the dots in 334 + 272?

Answer: 606 s

334 + 272 = 606 dots, so 606 s, about 10 minutes.

At 15 seconds a column, how many seconds does digit-by-digit addition take for 3347 + 2729?

Answer: 60 s

4 columns × 15 s = 60 s, about one minute.

  • It needs just one more column — correct. Yes. One more digit means one more column to add.
  • It becomes about 10 times as much. That is what happens to the number of dots, not the columns.
  • It stays exactly the same. There is one more column to add, so a little more work.