NCERT Solutions for Class 9 Maths Chapter 11 The World of Algorithms – step-by-step answers to every exercise and in-text question of the chapter, as per the latest NCERT syllabus for 2027. Read them online or download the free question-answer PDF.
Chapter 11 explains what an algorithm is: a precise, step-by-step procedure built from basic steps we can already do. It starts with the column method of addition, then builds algorithms for listing divisors and finding the gcd, improves them one by one, and compares how much work each needs. It ends with Euclid’s subtraction method and Āryabhaṭa’s much faster division method. You will learn to write algorithms clearly, execute them, check that they are correct and judge how efficient they are.
NCERT Solutions for Class 9 Maths Chapter 11 The World of Algorithms PDF
All the answers are on this page below. The PDF also explains every answer – why it is right and how to check it – so download it for revision.
| Chapter | Download | |
|---|---|---|
| Solutions PDF | The World of Algorithms | View PDF |
NCERT Solutions for Class 9 Maths Chapter 11 The World of Algorithms – Questions and Answers
All 19 questions of the chapter (textbook pages Part II, 37 – 50) are answered below, in the order of the book – in-text questions, activities and the end-of-chapter exercises. Each answer is written the way you would write it in the exam.
Exercise Set 11.1 — Page 38Section 11.1.1 Adding Numbers Digit by Digit
- Write the numbers one below the other in the Indian base-ten place-value system so that the digits are aligned from right to left.
- Add the rightmost digits.
- If the sum is less than 10, write the sum directly below the two digits. Set the value of carry to 0.
- If the sum is more than 10, write the units digit of the sum directly below the two digits. Set the value of carry to 1.
- Move to the next column of digits on the left. Add the two digits and the current value of carry.
- If the sum is less than 10, write the sum directly below the two digits. Set the value of carry to 0.
- If the sum is more than 10, write the units digit of the sum directly below the two digits. Set the value of carry to 1.
- Repeat Step 3 until there are no more digits on the left.
- If the value of carry is 1, write 1 to the left of the bottom row.
Example 1: 3486 + 2759
Step 2: 6 + 9 = 15, more than 10 → write 5, carry = 1
Step 3: 8 + 5 + 1 = 14 → write 4, carry = 1
Step 3: 4 + 7 + 1 = 12 → write 2, carry = 1
Step 3: 3 + 2 + 1 = 6, less than 10 → write 6, carry = 0
Step 5: carry is 0, nothing more to write → 6245 ✓
Example 2: 2735 + 4175. Step 2 gives 5 + 5 = 10. The steps cover only “less than 10” and “more than 10”, so a strict follower is stuck.
So we get the correct result only when no column adds up to exactly 10. To make the steps always work, the second case should read “if the sum is 10 or more”. With this fix, 2735 + 4175 = 6910.
Example: 45678 + 789 (right digits aligned)
Tens: 7 + 8 + 1 = 16 → write 6, carry 1
Hundreds: 6 + 7 + 1 = 14 → write 4, carry 1
Thousands: 5 + (no digit) + 1 → ?
Step 3 says “add the two digits”, but the thousands and ten-thousands columns have only one digit. So, strictly, our steps do not handle this case.
They work if we treat each empty place as the digit 0, that is, write 789 as 00789:
Ten-thousands: 4 + 0 + 0 = 4 → write 4
45678 + 789 = 46467 ✓
So we must add a rule: “if a column has only one digit, take the missing digit as 0”.
Because the rightmost digit of every whole number is its units digit. Lining up the right ends puts units under units, tens under tens, hundreds under hundreds, and so on. The algorithm adds one column at a time, so each column must hold digits of the same place value. This matters most when the numbers have different numbers of digits.
52 + 314, aligned on the left: 5 under 3, 2 under 1 → 520 + 314 = 834 ✗
Aligning on the left treats 52 as if it were 520.
(Step 3: Move to the next column of digits on the left. Add the two digits and the current value of carry.)
The largest possible column sum is
= 9 + 9 + 1 = 19
Since a column sum is never 20 or more, its tens digit is at most 1, so the carry is at most 1.
This works step by step. In Step 2 there is no carry yet, so the sum is at most 9 + 9 = 18 and the carry is 0 or 1. Then each Step 3 column is at most 9 + 9 + 1 = 19, so it again passes on a carry of 0 or 1, and so on for every column.
(Step 5: If the value of carry is 1, write 1 to the left of the bottom row.)
Without Step 5, a carry of 1 left over from the leftmost column is thrown away, so the answer loses its first digit.
Works correctly when the leftmost column adds up to less than 10, so the final carry is 0:
2105 + 3462 → 5567 ✓
Fails when the leftmost column produces a carry of 1:
Bottom row = 168, but 473 + 695 = 1168 ✗
5 + 7: 12 → write 2, carry 1 → answer 2 instead of 12 ✗
Think and Reflect — Page 39Section 11.1 Adding Numbers
Write each number as groups of units, tens and hundreds, and add like groups:
695 = 6 hundreds + 9 tens + 5 units
Sum = 10 hundreds + 16 tens + 8 units
= 10 hundreds + (1 hundred + 6 tens) + 8 units [carry 1]
= 11 hundreds + 6 tens + 8 units
= 1 thousand + 1 hundred + 6 tens + 8 units [carry 1]
= 1168
The algorithm makes exactly these moves. Each column is one group (units, tens, hundreds, …). Each carry exchanges ten of one group for one of the next group, since 10 units = 1 ten, 10 tens = 1 hundred, and so on. Exchanging never changes the total. So the digits we write give the same total as counting all the dots.
Change Step 1: line up the decimal points (not the rightmost digits). If one number has fewer digits after the decimal point, write zeros at its right end so both have the same number of decimal places. Then add the columns from the right exactly as before (Steps 2–5), and put the decimal point in the answer directly below the other decimal points.
Hundredths: 5 + 0 = 5
Tenths: 7 + 6 = 13 → write 3, carry 1
Units: 3 + 2 + 1 = 6
Tens: 0 + 1 = 1
Answer: 16.35
The carry works across the decimal point because 10 hundredths = 1 tenth and 10 tenths = 1 unit.
Think and Reflect — Page 41Section 11.2.1 Computing the Divisors of a Number
Executing for 15 (list-of-divisors starts empty, [ ]):
j = 2 does not divide 15 → [1]
j = 3 divides 15 → [1, 3]
j = 4 does not → [1, 3]
j = 5 divides 15 → [1, 3, 5]
j = 6, 7, …, 14 do not → [1, 3, 5]
j = 15 divides 15 → [1, 3, 5, 15]
In the same way:
divisors(135) = [1, 3, 5, 9, 15, 27, 45, 135] — 135 checks
divisors(775) = [1, 5, 25, 31, 155, 775] — 775 checks
Work: the algorithm tests every j from 1 to n, so it makes n checks for the number n. The work grows in proportion to the number itself: 135 needs 9 times as many checks as 15. Each extra digit makes the work about 10 times bigger, just like adding by counting dots.
Exercise Set 11.2 — Pages 43–44Sections 11.2 Greatest Common Divisor and 11.3 Data Structures
(i) Write an algorithm to find elements in List 1 that are not present in List 2.
(ii) Write an algorithm to find elements in List 2 that are not present in List 1.
(i)
- Start with an empty list
only-in-1. - For each number x in List 1
- if x does not appear in List 2, add x to
only-in-1.
- if x does not appear in List 2, add x to
- Report
only-in-1.
(ii) The same algorithm with the lists swapped:
- Start with an empty list
only-in-2. - For each number x in List 2
- if x does not appear in List 1, add x to
only-in-2.
- if x does not appear in List 1, add x to
- Report
only-in-2.
Example: List 1 = divisors(375) = [1, 3, 5, 15, 25, 75, 125, 375], List 2 = divisors(825) = [1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825]. Then (i) gives [125, 375] and (ii) gives [11, 33, 55, 165, 275, 825], both in increasing order.
The lcm of m and n is the smallest number that both m and n divide. Straight from this definition: go through the multiples of the larger number in order, and stop at the first one that the other number divides.
- If m < n, swap the numbers, so that m is the larger one.
- For each number k in the sequence 1, 2, 3, …, n
- if n divides k × m, report k × m as lcm(m, n) and stop.
The algorithm always stops by k = n, because n × m is a multiple of both numbers.
k = 1: 12 does not divide 18
k = 2: 12 divides 36 → lcm(12, 18) = 36
(i) If we write out divisors in pairs, how many numbers do we have to examine between 1 and n to find all the divisors of n?
(ii) If we list out the divisors in pairs, will our gcd algorithm still work in the manner we have described?
(i) In each pair (j, n ÷ j), the smaller number is at most √n; if both were bigger than √n, their product would be bigger than n. So we only examine j = 1, 2, 3, … up to √n, that is, up to the largest whole number whose square is not more than n. Each j that divides n gives a pair (j, n ÷ j).
→ pairs (1, 18), (2, 9), (3, 6)
(ii) Not as described. Written in pairs, the list is not in increasing order: [1, 18, 2, 9, 3, 6]. But the last step, “report the rightmost element of common-divisors”, needs increasing order.
common-divisors = [1, 9, 3] → rightmost = 3 ✗ (true gcd = 9)
Fix: report the largest element of common-divisors instead.
Exercise Set 11.3 — Page 45Section 11.3.1 Improving the Algorithm
- Let
divisors-of-mbe the list obtained by computing divisors(m) - Let
divisors-of-nbe the list obtained by computing divisors(n) - Start with an empty list
common-divisors - For each number x in the list of
divisors-of-m- If x also appears in the list of
divisors-of-n, add x to the listcommon-divisors
- If x also appears in the list of
- Report the rightmost element of the list
common-divisorsas gcd(m, n)
list-of-divisors. 2. For each number j in the sequence 1, 2, 3, …, n: if j divides n, add j to the list-of-divisors.The divisor lists would come out in decreasing order, for example divisors(375) = [375, 125, 75, 25, 15, 5, 3, 1]. Then common-divisors is also in decreasing order, so the gcd is its leftmost (first) element, not the rightmost. Step 5 must change to: “Report the leftmost element of the list common-divisors as gcd(m, n).” If Step 5 were left unchanged, it would always report 1.
divisors-of-375 = [375, 125, 75, 25, 15, 5, 3, 1]
divisors-of-825 = [825, 275, 165, 75, 55, 33, 25, 15, 11, 5, 3, 1]
common-divisors = [75, 25, 15, 5, 3, 1] → leftmost = 75 ✓
most-recent-common-divisor set to 1. Then scan all numbers from 2 to min(m, n):- For each k from 2 to min(m, n), if k divides both m and n, update
most-recent-common-divisorto k.
most-recent-common-divisor directly gives us the gcd.Going downwards, the first k that divides both m and n is the largest common divisor, that is, the gcd. So we can stop as soon as we find it. We no longer need most-recent-common-divisor at all.
- For each k from min(m, n) down to 1
- if k divides both m and n, report k as gcd(m, n) and stop.
It always stops, because k = 1 divides both numbers.
k = 6 divides both 6 and 12 → gcd(6, 12) = 6, after just 1 check
(scanning upwards needed 5 checks, k = 2 to 6)
This is much faster when the gcd is large. But when the gcd is small, for example gcd(35, 36) = 1, we still go all the way down to 1, so in the worst case it is no better.
In-text Questions — Page 48Section 11.3.4 Āryabhaṭa’s Division Algorithm
For k ≥ 1, 2k + 1 is bigger than 2, so no reversal is needed.
gcd(2, 1): 2 = 2 × 1 + 0, so 2 mod 1 = 0 → reduce to gcd(1, 0)
gcd(1, 0): n = 0 → answer 1
An odd number always leaves remainder 1 when divided by 2, whatever k is. So every problem gcd(2k + 1, 2) takes exactly two reductions and gives the answer 1.
Example: gcd(2001, 2) → gcd(2, 1) → gcd(1, 0) = 1. The subtraction version would need 1002 reductions here.
End-of-Chapter Exercises — Page 50Whole chapter
(i) gcd(375, 825)
(ii) gcd(51000, 81000)
(iii) gcd(1789287, 237656)
(iv) gcd(2587392, 157656)
- If m < n, reverse the numbers and compute gcd(n, m)
- If n = 0, report the answer as m
- Otherwise, reduce the problem to computing gcd(n, m mod n)
By Step 1, the larger number goes first. Each row gcd(m, n) reduces to gcd(n, m mod n), which is the next row. When m mod n = 0, we have reached gcd(n, 0), so the gcd is n.
(i) gcd(375, 825) = 75
| m | n | m mod n |
|---|---|---|
| 825 | 375 | 75 |
| 375 | 75 | 0 |
(ii) gcd(51000, 81000) = 3000
| m | n | m mod n |
|---|---|---|
| 81000 | 51000 | 30000 |
| 51000 | 30000 | 21000 |
| 30000 | 21000 | 9000 |
| 21000 | 9000 | 3000 |
| 9000 | 3000 | 0 |
(iii) gcd(1789287, 237656) = 1
| m | n | m mod n |
|---|---|---|
| 1789287 | 237656 | 125695 |
| 237656 | 125695 | 111961 |
| 125695 | 111961 | 13734 |
| 111961 | 13734 | 2089 |
| 13734 | 2089 | 1200 |
| 2089 | 1200 | 889 |
| 1200 | 889 | 311 |
| 889 | 311 | 267 |
| 311 | 267 | 44 |
| 267 | 44 | 3 |
| 44 | 3 | 2 |
| 3 | 2 | 1 |
| 2 | 1 | 0 |
(iv) gcd(2587392, 157656) = 24
| m | n | m mod n |
|---|---|---|
| 2587392 | 157656 | 64896 |
| 157656 | 64896 | 27864 |
| 64896 | 27864 | 9168 |
| 27864 | 9168 | 360 |
| 9168 | 360 | 168 |
| 360 | 168 | 24 |
| 168 | 24 | 0 |
Divide m by n: m = q × n + r, where q is the quotient and r = m mod n, with 0 ≤ r < n.
If d divides m and n: write m = ad and n = bd for whole numbers a, b. Then
so d divides r, that is, d divides m mod n. It already divides n.
If d divides n and m mod n: write n = bd and r = cd. Then
so d divides m. It already divides n.
Both directions hold, so d divides m and n if and only if d divides n and m mod n. The two pairs have the same common divisors, hence gcd(m, n) = gcd(n, m mod n).
(Hint: A prime number p has exactly two distinct factors, 1 and p. Can you make use of divisors(n) to write out prime(n)?)
- Let
divisors-of-nbe the list obtained by computing divisors(n). - Count the number of elements in
divisors-of-n. - If the count is exactly 2, report “n is prime”. Otherwise, report “n is not prime”.
prime(15): divisors(15) = [1, 3, 5, 15] → 4 elements → 15 is not prime
prime(1): divisors(1) = [1] → 1 element → 1 is not prime
Why it works: every number n greater than 1 has at least the two divisors 1 and n. It is prime exactly when there are no others, so its list has exactly 2 elements. The number 1 has only one divisor, so it is correctly reported as not prime.
(Hint: Compute divisors(n) and then filter out the primes in this list.)
- Let
divisors-of-nbe the list obtained by computing divisors(n). - Start with an empty list
prime-divisors. - For each number x in
divisors-of-n- if prime(x) reports “x is prime”, add x to
prime-divisors.
- if prime(x) reports “x is prime”, add x to
- Report
prime-divisors.
divisors(180) = [1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, 30, 36, 45, 60, 90, 180]
keep only the primes → primedivisors(180) = [2, 3, 5]
Similarly, primedivisors(825) = [3, 5, 11]. The answer list is in increasing order, because divisors(n) is.
(i) The prime factorisation of 180 is 22 × 32 × 51. How would you represent this?
(ii) How would you compare the prime factorisations of two numbers?
- Let x = n, and start with an empty list
factors. - For each prime p in primedivisors(n), from left to right
- set
countto 0; - while p divides x: replace x by x ÷ p and add 1 to
count; - add the pair (p,
count) tofactors.
- set
- Report
factors.
p = 2: 180 → 90 → 45, count = 2
p = 3: 45 → 15 → 5, count = 2
p = 5: 5 → 1, count = 1
(i) As a list of pairs (prime, power), primes in increasing order: 180 → [(2, 2), (3, 2), (5, 1)].
(ii) Compare the lists prime by prime (a missing prime has power 0). For the gcd, take each prime with the smaller power.
gcd = 31 × 52 × 110 = 75 ✓
Chapter 11 of 14 – Maths
- Previous: Chapter 10 How Quantities Combine: Understanding Data
- Next: Chapter 12 Quadrilaterals
- All chapters: NCERT Solutions Class 9 Maths
Also for This Chapter
NCERT Solutions Class 9 Maths Chapter 11 The World of Algorithms – Overview
| Class | Class 9 |
| Subject | Maths |
| Chapter | 11 – The World of Algorithms |
| Textbook pages | Part II, 37 – 50 |
| Questions solved | 19 |
| Session | 2027 |
| Format | Full answers on this page + PDF |
NCERT Solutions Class 9 Maths Chapter 11 – FAQs
Where can I download NCERT Solutions Class 9 Maths Chapter 11 The World of Algorithms PDF?
Read every answer on this page, or download the free PDF from the table at the top.
Is this for the 2027 session?
Yes, it follows the latest NCERT Class 9 Maths book for 2027.
How many questions are solved in NCERT Class 9 Maths Chapter 11?
All 19 questions of the chapter (textbook pages Part II, 37 – 50) – the in-text questions, activities and the end-of-chapter exercises.
How should I use these solutions?
Read the chapter in the NCERT book first, attempt the questions yourself, then check your answers here.