Multiple Choice Questions
What is an algorithm?
A step-by-step procedure to solve a problem
A method of counting dots to add numbers
A type of data structure
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.
Why do we align digits from right to left in the addition algorithm?
To make the numbers look neat
Because the Indian place-value system groups digits by powers of ten
To ensure that the carry is always 1
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.
In the addition algorithm, after adding two digits and the carry, if the sum is 10 or more, what do we do?
Write the whole sum and set carry to 1
Write the units digit and set carry to 1
Write the tens digit and set carry to 0
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.
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.
Both A and R are true and R is the correct explanation of A.
Both A and R are true but R is not the correct explanation of A.
A is true but R is false.
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.
According to the passage, what is the gcd of 375 and 825?
25
75
125
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.
In the method described in the passage, what is the first step to find the gcd of two numbers?
Find the prime factorization of both numbers
List all divisors of each number
Use Euclid's algorithm
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.
What is the key difference between Euclid's subtraction algorithm and Aryabhata's division algorithm?
Euclid uses subtraction, Aryabhata uses division with remainder
Euclid uses multiplication, Aryabhata uses addition
Euclid uses prime factorization, Aryabhata uses lists
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.
For gcd(99,2), how many steps does Aryabhata's method take according to the passage?
49
2
1
10
Show answer
Answer: B — 2
The passage says it takes only 2 steps with Aryabhata's method.
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.
Both A and R are true and R is the correct explanation of A.
Both A and R are true but R is not the correct explanation of A.
A is true but R is false.
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.
What is the list of divisors of 15?
[1, 3, 5, 15]
[1, 2, 3, 5, 15]
[1, 15]
[1, 3, 5, 15, 30]
Show answer
Answer: A — [1, 3, 5, 15]
The divisors of 15 are 1, 3, 5, and 15.
Why is the carry step important in the addition algorithm?
It ensures that the sum is always correct when a column sum exceeds 9
It makes the algorithm faster
It is needed only for decimal numbers
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.
What is a data structure, as described in the chapter?
A way to organise information to help make an algorithm more efficient
A type of number system
A step in an algorithm
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.
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.
Both A and R are true and R is the correct explanation of A.
Both A and R are true but R is not the correct explanation of A.
A is true but R is false.
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.
In the addition algorithm, when adding 473 and 695, what is the carry after adding the units column (3+5)?
0
1
2
8
Show answer
Answer: A — 0
3+5=8, which is less than 10, so carry is 0.
What is the value of 17 mod 5?
2
3
5
12
Show answer
Answer: A — 2
17 divided by 5 gives remainder 2, so 17 mod 5 = 2.
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.
Both A and R are true and R is the correct explanation of A.
Both A and R are true but R is not the correct explanation of A.
A is true but R is false.
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.
For computing the gcd, which algorithm's number of steps is proportional to the number of digits?
Divisor list method
Euclid's subtraction algorithm
Aryabhata's division algorithm
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.
Which algorithm is described as inefficient for large numbers in the passage?
Addition algorithm
Divisor list method
Aryabhata's division algorithm
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.
What is the gcd of 60 and 16 using Aryabhata's division algorithm?
2
4
6
8
Show answer
Answer: B — 4
The chapter example shows gcd(60,16)=4.
Why does Aryabhata's division algorithm require fewer steps than Euclid's subtraction algorithm for numbers like 99 and 2?
Because it uses multiplication instead of addition
Because it uses remainder instead of repeated subtraction
Because it uses prime factorization
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
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.
Write the steps of the addition algorithm to add two numbers.
Show answer
- Write the numbers one below the other with digits aligned from right to left.
- Add the rightmost digits. If sum < 10, write sum and set carry to 0; else write units digit and set carry to 1.
- Move to the next column, add the two digits and the carry. Apply the same rule.
- Repeat step 3 until no more digits on the left.
- If carry is 1, write 1 to the left of the bottom row.
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.
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.
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.
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.
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.
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
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:
- Compute the list of divisors of m by checking each number from 1 to m.
- Compute the list of divisors of n similarly.
- Create an empty list common-divisors.
- For each divisor in the first list, if it also appears in the second list, add it to common-divisors.
- 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.
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.
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.
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.