Rattu / Learn / Class 9 / Maths

The World of Algorithms Class 9: MCQs with Answers, Notes and Diagram Practice

Chapter 11: the addition algorithm, finding the gcd by listing divisors, Euclid's subtraction method and Aryabhata's division method. Try the quiz, then read the notes.

What is an algorithm?

An algorithm is a step-by-step procedure, written as precisely as possible, that leads to an answer. It is built from basic steps we can already do directly, such as adding two single digits, and it may repeat steps or use conditions. We also need to justify that it is correct and can look at how many steps it takes.

The World of Algorithms MCQs: practice quiz

Tap or drag to answer. Nothing is saved or sent.

This page follows the 2026-27 NCERT Class 9 Maths Chapter 11, The World of Algorithms (Ganita Manjari, Part II). It is a new chapter. The old Class 9 book had no algorithms chapter, though the hcf by listing factors and Euclid's division lemma from Real Numbers are related ideas.

In one line: an algorithm is a precise step-by-step procedure, and the chapter builds the gcd (hcf) of two numbers three ways: by listing divisors, by Euclid's repeated subtraction, and by Aryabhata's faster repeated division.

The chapter starts from something you already do, adding numbers column by column, and shows that this is an algorithm. It then writes the gcd as an algorithm, improves it step by step, and ends with the history of the word itself. Nothing here needs new theory; the skill is following steps exactly and judging how much work they take. This is a new chapter in the 2026-27 book, but it reuses the idea of hcf by listing factors that older Class 9 students met in Number Systems.

What is an algorithm?

An algorithm is a step-by-step procedure that reaches an answer. We write its steps as precisely as possible, and going through them on real numbers is called executing the algorithm.

  • Every algorithm rests on basic steps we can do directly, such as adding two single digits or checking whether one number divides another.
  • A step can be repeated ("for each j from 1 to n") or conditional ("only if j divides n").
  • We give names such as divisors-of-m to the values we keep track of, so the steps stay short.
  • A good algorithm comes with a justification that it works and an analysis of how many steps it takes.

Addition algorithm: adding numbers digit by digit

Counting dots for 473 + 695 would take forever, so we use columns.

  1. Write the numbers one under the other, right ends aligned.
  2. Add the rightmost digits; write the units digit, carry 1 if the total is 10 or more.
  3. Move left, add the two digits and the carry; repeat until no digits are left.
  4. If a carry of 1 remains, write it in front.

Worked example: 473 + 695. Units 3 + 5 = 8. Tens 7 + 9 = 16, write 6 carry 1. Hundreds 4 + 6 + 1 = 11, write 1 carry 1. Front carry gives 1168. The carry is never more than 1 because the biggest column total is 9 + 9 + 1 = 19. Without the last step 85 + 27 would come out as 12 instead of 112. For a 5-digit plus a 3-digit number, treat the missing places as 0.

Why digit-by-digit is faster than counting

At one dot per second, counting 33 + 27 takes 60 seconds, 334 + 272 takes 606 seconds (about ten minutes), and 3347 + 2729 takes 6076 seconds, over one hour forty minutes. Each extra digit makes the dots about 10 times as many (3 to 5 digits means 100 times). In the column method each extra digit adds only one column; at 15 seconds a column, 33 + 27 takes 30 seconds and 3347 + 2729 about a minute. The method works because we add units, tens and hundreds separately, and ten units become one ten to carry.

Divisors of a number (list of divisors algorithm)

To find the divisors of n: start with an empty list, then for each j from 1 to n, add j to the list if j divides n. For 18 the list grows [ ], [1], [1, 2], [1, 2, 3], [1, 2, 3, 6], [1, 2, 3, 6, 9], [1, 2, 3, 6, 9, 18]. The list comes out in increasing order. Always 1 and n are on it. A list is a simple example of a data structure. The work is about n checks, so a number ten times as big means ten times the work.

Greatest common divisor (gcd or hcf): first algorithm

The gcd of m and n is the largest number dividing both. First algorithm: list divisors-of-m, list divisors-of-n, collect those appearing in both into common-divisors, and report the last entry.

  • divisors(375) = [1, 3, 5, 15, 25, 75, 125, 375]; divisors(825) has 12 entries.
  • Common divisors: 1, 3, 5, 15, 25, 75, so gcd(375, 825) = 75.
  • gcd(54000, 81000) = 27000, found from 2³ × 3³ × 5³.
  • 1 divides every number, so the common list is never empty.

Improving the gcd algorithm

Three refinements, none changing the answer:

  • Scan together: run j from 1 to max(m, n) and test both numbers, so the checks fall from m + n (375 + 825 = 1200) to max(m, n) = 825.
  • Common divisors only: a common divisor cannot exceed the smaller number, so scan only to min(m, n).
  • Do away with lists: keep one value, most-recent-common-divisor, start it at 1, and for k from 2 to min(m, n) update it to k whenever k divides both. For gcd(6, 12) it goes 1, 2, 3, 6.

Even this version checks every k up to min(m, n), so a 4-digit smaller number needs ten times the work of a 3-digit one.

Euclid's gcd algorithm (subtraction method)

Euclid's *Elements* records the key fact: for m ≥ n, gcd(m, n) = gcd(n, m − n). Why: if d divides m and n, writing m = ad and n = bd gives m − n = (a − b)d; and if d divides n and m − n, then m = n + (m − n) is also a multiple of d. So both pairs have the same common divisors.

  1. If m < n, swap them.
  2. If n = 0, the answer is m.
  3. Otherwise reduce to gcd(n, m − n).

gcd(375, 825) reaches gcd(75, 0) after 7 reductions, so the answer is 75. But gcd(99, 2) needs 51 reductions, because it subtracts 2 again and again. The steps follow the size of the number, not its digits.

Aryabhata's division algorithm (long division gcd)

Subtracting n again and again until you cannot is just division, and what is left is the remainder m mod n (17 mod 5 = 2, 33 mod 7 = 5). Aryabhata (Aryabhatiya, 499 CE) changed only step 3: reduce gcd(m, n) to gcd(n, m mod n). The stop rule is the same.

  • gcd(99, 2) → gcd(2, 1) → gcd(1, 0) = 1, just 2 reductions instead of 51.
  • gcd(100, 36) → (36, 28) → (28, 8) → (8, 4) → (4, 0), so the gcd is 4.
  • The number of reductions is proportional to the number of digits (proved in later classes).

Al-Khwarizmi and the word algorithm

The Persian scholar Al-Khwarizmi (780 to 850 CE) of the House of Wisdom in Baghdad wrote, around 820 CE, a treatise on Indian place-value numerals. Only its 12th-century Latin translation, *Liber Algorismi*, survives. His name in Latin, Algoritmi, gave algorismus, first meaning any Indian method of calculating, later algorithm.

The World of Algorithms short notes: quick revision list

  • Algorithm = precise step-by-step procedure; steps may repeat or be conditional
  • Column addition: align right, add right to left, carry ≤ 1 (9 + 9 + 1 = 19), write a final carry
  • Digits + 1 means about 10 times as many dots, but only 1 more column
  • divisors(n): test j = 1 to n, add j if j divides n; list is increasing
  • gcd = last entry of common-divisors; 1 is always common
  • gcd(375, 825) = 75; gcd(54000, 81000) = 27000
  • Checks: m + n, then max(m, n), then min(m, n) with one stored value
  • Euclid: gcd(m, n) = gcd(n, m − n); stop when n = 0, answer m
  • Aryabhata: gcd(m, n) = gcd(n, m mod n); gcd(99, 2): 51 steps by subtraction, 2 by division
  • m mod n is the remainder: 33 mod 7 = 5

Common mistakes in The World of Algorithms

Students lose marks on these most often. Read each pair once before the test.

  • Not this: Adding the columns from left to right, because that is how we read a number.
    Say this: Add from the right. A carry made in one column must be ready when you reach the column on its left.
  • Not this: Reporting the last entry of divisors-of-m as the gcd, for example 375 for gcd(375, 825).
    Say this: The gcd is the last entry of the common-divisors list, the numbers present in both lists. 375 does not divide 825, so the answer is 75.
  • Not this: Calculating m mod n as the quotient, so 33 mod 7 = 4.
    Say this: m mod n is the remainder. 33 = 4 × 7 + 5, so 33 mod 7 = 5; the 4 is the quotient.
  • Not this: Writing gcd(75, 0) = 0 because the second number is 0.
    Say this: Every number divides 0, so gcd(m, 0) = m. The stopping rule reports the first number: gcd(75, 0) = 75.
  • Not this: Saying the subtraction method always takes about as many steps as the numbers have digits.
    Say this: Subtraction can take a very long run: gcd(99, 2) needs 51 reductions. Only the division (remainder) method keeps the steps in line with the number of digits.

The World of Algorithms: assertion-reason questions

Options: (a) A and R are both true and R explains A. (b) Both are true but R does not explain A. (c) A is true, R is false. (d) A is false, R is true. Open each to see the answer.

1. Assertion (A): gcd(m, n) = gcd(n, m mod n) for m ≥ n > 0.
Reason (R): A number that divides both m and n also divides m mod n, and a number that divides both n and m mod n also divides m.

Answer: (a)

Both statements are true. R says the two pairs share exactly the same common divisors, which is why the gcd does not change.

2. Assertion (A): In the column addition algorithm the carry can sometimes be 2.
Reason (R): The biggest total a column can have is 9 + 9 + 1 = 19.

Answer: (d)

A is false: 19 gives units digit 9 and carry 1, so the carry is only 0 or 1. R is true.

3. Assertion (A): gcd(75, 0) = 75.
Reason (R): The only number that divides 0 is 0 itself.

Answer: (c)

A is true by the stopping rule of Euclid's algorithm. R is false: every number divides 0, since 0 = 0 × d for any d.

The World of Algorithms: case study question

A florist has 90 roses and 60 lilies. She wants to make identical bunches, using every flower, with the largest possible number of bunches. She finds the answer with Aryabhata's division method: gcd(90, 60) becomes gcd(60, 30), which becomes gcd(30, 0).
1. What is the largest number of identical bunches she can make?
  • 30
  • 15
  • 60
  • 90

Answer: 30

The answer is the gcd. The final pair gcd(30, 0) gives 30, so 30 bunches.

2. How many roses go into each bunch?
  • 3
  • 2
  • 6
  • 30

Answer: 3

With 30 bunches, 90 roses ÷ 30 = 3 roses in each (and 60 ÷ 30 = 2 lilies).

The World of Algorithms questions and answers

Prefer to read? Open a question to see the answer and why.

1. Which description fits an algorithm best?
  • A step-by-step procedure that leads to an answer
  • A lucky guess that is checked later
  • A table that lists every possible answer
  • A machine that does sums

Answer: A step-by-step procedure that leads to an answer

An algorithm is a procedure written as precise steps which, when followed, arrive at the answer.

2. Put the steps of the addition algorithm in order.
  1. Write the numbers one under the other with the right ends aligned
  2. Add the rightmost digits and note any carry
  3. Move left one column and add the two digits plus the carry
  4. Repeat until no digits are left
  5. Write a leftover carry of 1 in front

First align, then start at the right, keep moving left with the carry, stop when the digits run out, and finally write any carry.

3. Sort each version of the gcd method by whether it stores lists of divisors.
  • First method with two divisor lists → Stores lists
  • Combined scan collecting common divisors → Stores lists
  • Scan up to min(m, n) keeping only the latest common divisor → Stores no lists

The first two keep lists of divisors. The last keeps just one number, the latest common divisor.

4. The gcd is the last entry of the common-divisors list because that list is in increasing order.

Answer: True

Divisors were checked from small to large, so the common ones also come out sorted, and the largest sits at the right end.

5. Which statements about algorithms are true?
  • A step may be carried out many times
  • A step may depend on a condition
  • We should justify that an algorithm is correct
  • An algorithm needs no basic steps at all

Correct: A step may be carried out many times; A step may depend on a condition; We should justify that an algorithm is correct

Algorithms use repetition and conditions, need a correctness argument, and always rest on basic steps that we can already do.

92 more questions in the Rattu app

This page plays the first 5. The app holds all 97 for this chapter: practice another 9 quiz formats across 9 topics.

True / False · 16 moreArrange in order · 5 moreMatch the following · 4 moreMatch the three columns · 1 moreChoose one · 35 moreChoose all the correct answers · 2 moreFill in the blank · 8 moreSort into groups · 2 moreShort answer · 19 more
Get Rattu on Google Play

Free to start. Android today; iPhone is coming.

The World of Algorithms: common questions

What is an algorithm?

An algorithm is a step-by-step procedure, written as precisely as possible, that leads to an answer. It is built from basic steps we can already do directly, such as adding two single digits, and it may repeat steps or use conditions. We also need to justify that it is correct and can look at how many steps it takes.

How do you find the gcd or hcf of two numbers?

One way is to list the divisors of both numbers, pick the ones that appear in both lists, and take the largest. For example the common divisors of 375 and 825 are 1, 3, 5, 15, 25 and 75, so the gcd is 75. This is the same idea as the old Class 9 style hcf by listing factors, written as an algorithm.

What is Euclid's algorithm for gcd?

Euclid's algorithm uses the fact that for m ≥ n, gcd(m, n) = gcd(n, m − n). You keep reducing the pair, swapping so the larger number comes first, until the second number is 0, and then the first number is the gcd. Using a remainder instead of one subtraction, as Aryabhata did, makes it much faster.

What is the difference between Euclid's subtraction method and Aryabhata's division method?

Euclid's version reduces gcd(m, n) to gcd(n, m − n), subtracting once per step. Aryabhata's version reduces it to gcd(n, m mod n), which is the same as subtracting n as many times as possible in one go. For gcd(99, 2) the subtraction method needs 51 reductions and the division method needs only 2.

Is this free to use?

Yes. You do not need to log in, and nothing you answer on this page is saved or sent anywhere.

What are the important questions in The World of Algorithms Class 9?

Practise one set of questions for each topic in the notes: What is an algorithm?, Addition algorithm: adding numbers digit by digit, Why digit-by-digit is faster than counting, Divisors of a number (list of divisors algorithm), Greatest common divisor (gcd or hcf): first algorithm, Improving the gcd algorithm, Euclid's gcd algorithm (subtraction method), Aryabhata's division algorithm (long division gcd). Then try the assertion-reason and case study questions on this page, which are the question styles that now come in school and board papers. The Rattu app has all 97 questions for this chapter.

Are there assertion-reason and case study questions for The World of Algorithms?

Yes. This page has three assertion-reason questions and one case study question with answers and short explanations, written for Class 9 Maths The World of Algorithms.

Where can I find short notes and a quick revision list for The World of Algorithms?

Read the notes on this page topic by topic. The last section, The World of Algorithms short notes: quick revision list, has the key points in a few lines for the day before the test.

Sources and credits

This page follows the topics of NCERT, Ganita Manjari: Textbook of Mathematics for Grade 9, Part II, Chapter 11, The World of Algorithms (2026-27 syllabus). The notes, questions and explanations on this page are written by Rattu, are not published by NCERT, and do not reproduce its text or figures.

    Found a mistake? Please tell us at hello@rattu.app.

    More Class 9 Maths chapters

    Also in Class 9

    All Class 9 Maths chapters · All Class 9 chapters