Menu
Home
Classes
Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 Class 11 Class 12
CUET UG
CUET Home Subjects Notes Quizzes Solutions Mock Tests Blog
OPSC
All Odisha exams OPSC Home OAS Preparation Question Papers Syllabus Practice MCQs Optional Subjects
Ask a Query
📱 Download BYTE App
About Contact Privacy
Home Class 9 App
Class 9 · Maths Part 2 · Chapter 11

The World of AlgorithmsClass 9 Maths Part 2 · Chapter 11 Extra Questions

Extra Practice Questions — beyond the textbook exercises
Book Notes Quiz Solutions Extra Qs Sample Paper
{'html': '', 'images': []}

Multiple Choice Questions

Q1.

What is an algorithm?

  1. A step-by-step procedure to solve a problem

  2. A method of counting dots to add numbers

  3. A type of data structure

  4. A Greek method for finding prime numbers

Show answer

Answer: A — A step-by-step procedure to solve a problem

The chapter defines an algorithm as a step-by-step procedure to arrive at an answer.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌⁠

Q2.

Why do we align digits from right to left in the addition algorithm?

  1. To make the numbers look neat

  2. Because the Indian place-value system groups digits by powers of ten

  3. To ensure that the carry is always 1

  4. To avoid adding numbers with different lengths

Show answer

Answer: B — Because the Indian place-value system groups digits by powers of ten

Aligning from right to left is essential because the place value increases from right to left, so like places must be added together.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​⁠

Q3.

In the addition algorithm, after adding two digits and the carry, if the sum is 10 or more, what do we do?

  1. Write the whole sum and set carry to 1

  2. Write the units digit and set carry to 1

  3. Write the tens digit and set carry to 0

  4. Ignore the carry and write the sum directly

Show answer

Answer: B — Write the units digit and set carry to 1

According to the algorithm, if the sum is more than 10 (or 10 or more), we write the units digit below and set the carry to 1.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌⁠

Q4.

Assertion (A): The addition algorithm is much faster than counting dots for large numbers.
Reason (R): The time taken by the addition algorithm is proportional to the number of digits, while counting dots takes time proportional to the value of the numbers.

  1. Both A and R are true and R is the correct explanation of A.

  2. Both A and R are true but R is not the correct explanation of A.

  3. A is true but R is false.

  4. A is false but R is true.

Show answer

Answer: A — Both A and R are true and R is the correct explanation of A.

The chapter explicitly states that addition algorithm is faster and explains that counting dots grows with value while digit addition grows with number of digits.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​​⁠

Q5.

According to the passage, what is the gcd of 375 and 825?

  1. 25

  2. 75

  3. 125

  4. 375

Show answer

Answer: B — 75

The passage states that the common divisors are [1, 3, 5, 15, 25, 75], so the gcd is 75.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌​‌⁠

Q6.

In the method described in the passage, what is the first step to find the gcd of two numbers?

  1. Find the prime factorization of both numbers

  2. List all divisors of each number

  3. Use Euclid's algorithm

  4. Subtract the smaller number from the larger

Show answer

Answer: B — List all divisors of each number

The passage says we list all divisors of each number and then find the largest common divisor.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌​⁠

Q7.

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

  1. Euclid uses subtraction, Aryabhata uses division with remainder

  2. Euclid uses multiplication, Aryabhata uses addition

  3. Euclid uses prime factorization, Aryabhata uses lists

  4. Euclid uses lists, Aryabhata uses subtraction

Show answer

Answer: A — Euclid uses subtraction, Aryabhata uses division with remainder

The passage states that Aryabhata's method uses remainder instead of repeated subtraction.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​‌‌‌⁠

Q8.

For gcd(99,2), how many steps does Aryabhata's method take according to the passage?

  1. 49

  2. 2

  3. 1

  4. 10

Show answer

Answer: B — 2

The passage says it takes only 2 steps with Aryabhata's method.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌‌​​​⁠

Q9.

Assertion (A): The divisor list method for finding gcd is efficient for very large numbers.
Reason (R): It scans all numbers from 1 to the smaller number to find common divisors.

  1. Both A and R are true and R is the correct explanation of A.

  2. Both A and R are true but R is not the correct explanation of A.

  3. A is true but R is false.

  4. A is false but R is true.

Show answer

Answer: D — A is false but R is true.

A is false because the method is not efficient for large numbers. R is true as it scans up to min(m,n). So D.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌‌​​‌⁠

Q10.

What is the list of divisors of 15?

  1. [1, 3, 5, 15]

  2. [1, 2, 3, 5, 15]

  3. [1, 15]

  4. [1, 3, 5, 15, 30]

Show answer

Answer: A — [1, 3, 5, 15]

The divisors of 15 are 1, 3, 5, and 15.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​​⁠

Q11.

Why is the carry step important in the addition algorithm?

  1. It ensures that the sum is always correct when a column sum exceeds 9

  2. It makes the algorithm faster

  3. It is needed only for decimal numbers

  4. It is used to align the digits

Show answer

Answer: A — It ensures that the sum is always correct when a column sum exceeds 9

Without the carry step, the sum would be incorrect when a column sum is 10 or more, because the extra ten must be carried to the next column.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌⁠

Q12.

What is a data structure, as described in the chapter?

  1. A way to organise information to help make an algorithm more efficient

  2. A type of number system

  3. A step in an algorithm

  4. A mathematical proof

Show answer

Answer: A — A way to organise information to help make an algorithm more efficient

The chapter states that a data structure organises information to help make an algorithm more efficient.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​‌​⁠

Q13.

Assertion (A): In the improved gcd algorithm that does away with lists, we keep track of a variable called most-recent-common-divisor.
Reason (R): This variable stores the largest common divisor found so far.

  1. Both A and R are true and R is the correct explanation of A.

  2. Both A and R are true but R is not the correct explanation of A.

  3. A is true but R is false.

  4. A is false but R is true.

Show answer

Answer: A — Both A and R are true and R is the correct explanation of A.

Both are true and R explains why we use the variable.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​‌‌⁠

Q14.

In the addition algorithm, when adding 473 and 695, what is the carry after adding the units column (3+5)?

  1. 0

  2. 1

  3. 2

  4. 8

Show answer

Answer: A — 0

3+5=8, which is less than 10, so carry is 0.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌​​⁠

Q15.

What is the value of 17 mod 5?

  1. 2

  2. 3

  3. 5

  4. 12

Show answer

Answer: A — 2

17 divided by 5 gives remainder 2, so 17 mod 5 = 2.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌​‌⁠

Q16.

Assertion (A): Al-Khwarizmi's work helped spread Indian arithmetic to Europe.
Reason (R): He wrote a treatise on Indian numerals that was translated into Latin.

  1. Both A and R are true and R is the correct explanation of A.

  2. Both A and R are true but R is not the correct explanation of A.

  3. A is true but R is false.

  4. A is false but R is true.

Show answer

Answer: A — Both A and R are true and R is the correct explanation of A.

The chapter states that Al-Khwarizmi wrote a treatise expounding Indian place value system and it was translated into Latin, spreading Indian arithmetic.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌‌​⁠

Q17.

For computing the gcd, which algorithm's number of steps is proportional to the number of digits?

  1. Divisor list method

  2. Euclid's subtraction algorithm

  3. Aryabhata's division algorithm

  4. Counting dots

Show answer

Answer: C — Aryabhata's division algorithm

The passage states that Aryabhata's division algorithm has steps proportional to the number of digits.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​‌‌‌⁠

Q18.

Which algorithm is described as inefficient for large numbers in the passage?

  1. Addition algorithm

  2. Divisor list method

  3. Aryabhata's division algorithm

  4. Euclid's subtraction algorithm

Show answer

Answer: B — Divisor list method

The passage says the divisor list method has steps proportional to the value, which is inefficient for large numbers.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌‌​​​⁠

Q19.

What is the gcd of 60 and 16 using Aryabhata's division algorithm?

  1. 2

  2. 4

  3. 6

  4. 8

Show answer

Answer: B — 4

The chapter example shows gcd(60,16)=4.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌‌​​‌⁠

Q20.

Why does Aryabhata's division algorithm require fewer steps than Euclid's subtraction algorithm for numbers like 99 and 2?

  1. Because it uses multiplication instead of addition

  2. Because it uses remainder instead of repeated subtraction

  3. Because it uses prime factorization

  4. Because it uses lists

Show answer

Answer: B — Because it uses remainder instead of repeated subtraction

Aryabhata's algorithm replaces repeated subtraction with division and remainder, reducing the number of steps.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​​​⁠

Short Answer Questions

Q21.

Explain why the addition algorithm is more efficient than counting dots for adding large numbers.

Show answer

The addition algorithm takes time proportional to the number of digits, while counting dots takes time proportional to the value of the numbers. For example, adding 4-digit numbers requires only one more column than 3-digit numbers, whereas counting dots would require 10 times as many dots.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​​‌⁠

Q22.

Write the steps of the addition algorithm to add two numbers.

Show answer
  1. Write the numbers one below the other with digits aligned from right to left.
  2. Add the rightmost digits. If sum < 10, write sum and set carry to 0; else write units digit and set carry to 1.
  3. Move to the next column, add the two digits and the carry. Apply the same rule.
  4. Repeat step 3 until no more digits on the left.
  5. If carry is 1, write 1 to the left of the bottom row.
⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​‌​⁠
Q23.

What is the main assumption in the addition algorithm?

Show answer

The main assumption is that we know how to add single-digit numbers without counting them out. This basic step is used repeatedly in the algorithm.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​​‌‌⁠

Q24.

How would you modify the addition algorithm to add decimal fractions?

Show answer

We would align the decimal points of the numbers and then add each column from right to left, including the decimal places. The carry rule remains the same.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌​​⁠

Q25.

Describe the algorithm to find the divisors of a number n.

Show answer

Start with an empty list. For each number j from 1 to n, if j divides n, add j to the list. At the end, the list contains all divisors of n in increasing order.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌​‌⁠

Q26.

What is the greatest common divisor of 54000 and 81000?

Show answer

The gcd of 54000 and 81000 is 27000, as computed in the chapter by listing common divisors.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌‌​⁠

Q27.

Explain the key observation behind Euclid's subtraction algorithm.

Show answer

The key observation is that gcd(m,n) = gcd(n, m-n). This holds because any common divisor of m and n also divides m-n, and vice versa. Thus the problem reduces to smaller numbers.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌​‌‌‌⁠

Q28.

Compare the efficiency of Euclid's subtraction algorithm and Aryabhata's division algorithm.

Show answer

Euclid's subtraction algorithm requires many subtractions when one number is much larger than the other, so steps are proportional to the value. Aryabhata's division algorithm uses remainder, reducing steps to be proportional to the number of digits, making it much more efficient.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌‌​​​⁠

Long Answer Questions

Q29.

Write a detailed algorithm to find the gcd of two numbers using the divisor list method, and explain each step. Then compute gcd(375, 825) using this algorithm.

Show answer

Algorithm:⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌‌​​‌⁠

  1. Compute the list of divisors of m by checking each number from 1 to m.
  2. Compute the list of divisors of n similarly.
  3. Create an empty list common-divisors.
  4. For each divisor in the first list, if it also appears in the second list, add it to common-divisors.
  5. Report the rightmost element of common-divisors as gcd(m,n).

Computation for 375 and 825:

Divisors of 375: [1, 3, 5, 15, 25, 75, 125, 375]

Divisors of 825: [1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825]⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌​​​‌‌‌​​‌⁠

Common divisors: [1, 3, 5, 15, 25, 75]

Largest common divisor = 75. So gcd(375, 825) = 75.

Q30.

Explain how the gcd algorithm can be improved by (i) combining scans, (ii) directly computing common divisors, and (iii) avoiding lists. Illustrate with an example.

Show answer

(i) Combining scans: Instead of scanning 1 to m and then 1 to n, scan 1 to max(m,n). For each j, if it divides m add to divisors of m, if divides n add to divisors of n.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​​​⁠

(ii) Directly computing common divisors: Scan 1 to min(m,n). If j divides both m and n, add to common-divisors list.

(iii) Avoiding lists: Keep a variable most-recent-common-divisor, initially 1. Scan from 2 to min(m,n). If k divides both, update variable to k. At end, variable is gcd.

Example: m=6, n=12. min=6. Start with 1. k=2 divides both, update to 2. k=3 divides both, update to 3. k=4 doesn't divide 6. k=5 doesn't divide 6. k=6 divides both, update to 6. gcd=6.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​​​⁠

Q31.

Describe Euclid's subtraction algorithm and Aryabhata's division algorithm. Compare their efficiency with an example.

Show answer

Euclid's subtraction algorithm: If m

Aryabhata's division algorithm: If m

Comparison: For gcd(99,2), Euclid's method requires about 49 subtractions, while Aryabhata's method requires only 2 steps. Thus Aryabhata's algorithm is much more efficient for numbers where one is much larger than the other.

Q32.

Discuss the origin of the word 'algorithm' and the contribution of Al-Khwarizmi. Also, explain the importance of data structures in algorithms.

Show answer

Origin of 'algorithm': The word comes from 'Algorismus', derived from the Latin form of Al-Khwarizmi's name. Al-Khwarizmi wrote a treatise on Indian numerals, which was translated into Latin and helped spread Indian arithmetic in Europe.⁠​‌​​​‌​‌​‌​‌​​‌‌​‌‌‌‌‌​​​‌‌‌‌​​​​​‌​‌‌‌‌​‌‌​‌‌‌​​‌‌​​​‌‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​‌‌​‌‌​‌​‌‌​​​​‌​‌‌‌​‌​​​‌‌​‌​​​​‌‌‌​​‌‌​​‌​‌‌​‌​‌‌‌​​​​​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​‌​​​​‌​‌‌​‌​​‌‌​​‌​​​‌​‌‌​‌​​‌‌‌​​‌​​‌​‌‌‌‌​​‌‌​​​‌​​‌‌​​​‌​​‌​‌‌‌‌​​‌‌​​‌‌​​‌‌​​‌​⁠

Contribution of Al-Khwarizmi: He expounded the Indian place value system and procedures for arithmetic operations, influencing medieval European mathematics.

Importance of data structures: Data structures like lists help organise information, making algorithms more efficient and easier to describe. For example, using a list to store divisors simplifies the gcd algorithm.

⏳
Loading extra questions…