Total Marks: 80 | Time: 3 hours
Instructions: All questions are compulsory. Marks are indicated against each question. Read each question carefully before answering.
Section A — Multiple Choice Questions (1 mark each)
What is an algorithm?
[1 mark]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?
[1 mark]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?
[1 mark]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, 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.
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 value of 17 mod 5?
[1 mark]2
3
5
12
Show answer
Answer: A — 2
17 divided by 5 gives remainder 2, so 17 mod 5 = 2.
What is a data structure, as described in the chapter?
[1 mark]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.
Which algorithm's number of steps is proportional to the number of digits?
[1 mark]Divisor list method
Euclid's subtraction algorithm
Aryabhata's division algorithm
Counting dots
Show answer
Answer: C — Aryabhata's division algorithm
The chapter states that Aryabhata's division algorithm has steps proportional to the number of digits.
What is the gcd of 60 and 16 using Aryabhata's division algorithm?
[1 mark]2
4
6
8
Show answer
Answer: B — 4
The chapter example shows gcd(60,16)=4.
What is the value of 33 mod 7?
[1 mark]5
2
4
6
Show answer
Answer: A — 5
33 divided by 7 gives remainder 5, so 33 mod 7 = 5.
In the addition algorithm, when adding 473 and 695, what is the carry after adding the units column (3+5)?
[1 mark]0
1
2
8
Show answer
Answer: A — 0
3+5=8, which is less than 10, so carry is 0.
What is the prime factorization of 180, as given in the chapter?
[1 mark]22 × 32 × 51
23 × 32 × 50
21 × 33 × 51
22 × 31 × 52
Show answer
Answer: A — 22 × 32 × 51
The chapter states: 'The prime factorisation of 180 is 22 × 32 × 51.'
What is the list of divisors of 15?
[1 mark][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.
What is the key observation behind Euclid's subtraction algorithm?
[1 mark]gcd(m, n) = gcd(n, m - n)
gcd(m, n) = gcd(m + n, n)
gcd(m, n) = gcd(m, n mod m)
gcd(m, n) = gcd(m - n, m + n)
Show answer
Answer: A — gcd(m, n) = gcd(n, m - n)
The chapter states: 'Then, gcd(m,n) is the same as gcd(n, m - n).' This is the basis of Euclid's subtraction algorithm.
According to the passage, what is the gcd of 375 and 825?
[1 mark]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?
[1 mark]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.
How many common divisors do 375 and 825 have according to the passage?
[1 mark]4
5
6
7
Show answer
Answer: C — 6
The common divisors are [1, 3, 5, 15, 25, 75], which are 6 in number.
What is the origin of the word 'algorithm' according to the passage?
[1 mark]From the Latin form of Al-Khwarizmi's name
From the Greek word for number
From the Indian word for mathematics
From the Arabic word for addition
Show answer
Answer: A — From the Latin form of Al-Khwarizmi's name
The passage explains that 'algorismus' came from Algoritmi, the Latin form of Al-Khwarizmi's name, which later contracted to 'algorithm'.
Which book by Al-Khwarizmi helped spread Indian arithmetic in Europe?
[1 mark]Liber Algorismi de numero Indorum
Aryabhatiya
Elements
Brahmasphutasiddhanta
Show answer
Answer: A — Liber Algorismi de numero Indorum
The passage states that his treatise was translated as 'Liber Algorismi de numero Indorum'.
What did the word 'algorithm' originally mean?
[1 mark]Any Indian method of arithmetic
A step-by-step procedure for solving problems
A type of data structure
A Greek method for finding prime numbers
Show answer
Answer: A — Any Indian method of arithmetic
The passage says: 'Originally, it meant any Indian method of arithmetic.'
Section B — Short Answer Questions (3 marks each)
Explain why the addition algorithm is more efficient than counting dots for adding large numbers.
[3 marks]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.
[3 marks]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.
Describe the algorithm to find the divisors of a number n.
[3 marks]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.
Explain the key observation behind Euclid's subtraction algorithm.
[3 marks]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 Euclid's subtraction algorithm and Aryabhata's division algorithm.
[3 marks]Show answer
Euclid's subtraction algorithm reduces gcd(m,n) to gcd(n, m-n) repeatedly, which can take many steps when one number is much larger. Aryabhata's division algorithm uses remainder: gcd(m,n) = gcd(n, m mod n). This reduces the number of steps to be proportional to the number of digits, making it much more efficient.
How would you modify the addition algorithm to add decimal fractions?
[3 marks]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.
What is a data structure? Give an example from the chapter.
[3 marks]Show answer
A data structure is a way to organise information to help make an algorithm more efficient. An example from the chapter is a list, such as the list of divisors used in the gcd algorithm.
Write an algorithm to check if a number n is prime.
[3 marks]Show answer
An algorithm to check if n is prime:
- If n ≤ 1, return false.
- For each j from 2 to n-1, if j divides n, return false.
- If no divisor found, return true.
Alternatively, we can use the list of divisors: compute divisors(n) and check if the list has exactly two elements (1 and n).
Section C — Long Answer Questions (5 marks each)
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.
[5 marks]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.
[5 marks]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.
[5 marks]Show answer
Euclid's subtraction algorithm: If m<n, swap. If n=0, answer is m. Else reduce to gcd(n, m-n).
Aryabhata's division algorithm: If m<n, swap. If n=0, answer is m. Else reduce to gcd(n, m mod n).
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.
[5 marks]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.
Section D — Case Study Questions (8 marks each)
Case Study 1: Read the passage and answer the question that follows.
Passage: The addition algorithm is a step-by-step procedure to add two numbers. It involves writing the numbers with digits aligned from right to left, adding each column from right to left, and carrying over any extra ten to the next column. This method is much faster than counting dots, especially for large numbers. For example, adding 473 and 695 using the algorithm takes only a few steps, while counting dots would take a very long time.
Explain the addition algorithm in detail. Why is it more efficient than counting dots? Provide an example to illustrate your answer.
[8 marks]Show answer
Addition algorithm:
- Write the numbers one below the other with digits aligned from right to left.
- Add the rightmost digits. If the sum is less than 10, write the sum and set carry to 0. If the sum is 10 or more, write the units digit and set carry to 1.
- Move to the next column, add the two digits and the carry. Apply the same rule.
- Repeat until no more digits on the left.
- If carry is 1, write 1 to the left of the bottom row.
Efficiency: The algorithm takes time proportional to the number of digits, while counting dots takes time proportional to the value of the numbers. For large numbers, counting dots becomes impractical.
Example: Add 473 and 695. Units: 3+5=8, carry 0. Tens: 7+9=16, write 6, carry 1. Hundreds: 4+6+1=11, write 1, carry 1. Final carry 1 gives 1168. This takes only a few steps.
Case Study 2: Read the passage and answer the question that follows.
Passage: Euclid's subtraction algorithm and Aryabhata's division algorithm are two methods to find the greatest common divisor (gcd) of two numbers. Euclid's algorithm repeatedly subtracts the smaller number from the larger until one number becomes zero. Aryabhata's algorithm improves this by using division with remainder: gcd(m,n) = gcd(n, m mod n). For example, gcd(99,2) takes about 49 steps with Euclid's method but only 2 steps with Aryabhata's method.
Describe both algorithms. Compare their efficiency with the example gcd(99,2). Which algorithm is better and why?
[8 marks]Show answer
Euclid's subtraction algorithm:
- If m < n, swap m and n.
- If n = 0, report m as the gcd.
- Otherwise, replace (m, n) with (n, m - n) and repeat.
Aryabhata's division algorithm:
- If m < n, swap m and n.
- If n = 0, report m as the gcd.
- Otherwise, replace (m, n) with (n, m mod n) and repeat.
Comparison: For gcd(99,2), Euclid's method requires about 49 subtractions because it repeatedly subtracts 2 from 99. Aryabhata's method requires only 2 steps: gcd(99,2) = gcd(2, 99 mod 2) = gcd(2,1) = gcd(1,0) = 1.
Conclusion: Aryabhata's division algorithm is better because its number of steps is proportional to the number of digits, not the value of the numbers, making it much more efficient for large numbers.