The World of Algorithms
Each subtopic includes About section, revision page link, 10 preview questions, and practice CTAs.
Adding Numbers
SubtopicAdding Numbers under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
What happens to the number of columns you need to add if you change a -digit number addition to a -digit number addition?
A.The number of columns increases by .
B.The number of columns stays the same.
C.The number of columns doubles.
D.The number of columns increases by .
- 2.
If counting dots for the sum takes seconds (at second per dot), and the column algorithm takes seconds per column, which method is faster?
A.Counting dots
B.The column algorithm
C.They take the same amount of time
D.It depends on the carry
- 3.
If you have a group of tens, what does the addition algorithm instruct you to do in terms of carrying?
A.Carry to the hundreds place.
B.Carry to the hundreds place.
C.Write in the tens place.
D.Set the carry to .
- 4.
Suppose you are adding and . After adding all the aligned columns, you find you have a 'carry' of remaining at the very end. What must you do according to the algorithm?
A.Discard the carry as the calculation is finished.
B.Add the carry to the rightmost digit.
C.Write the carry to the left of the current sum digits.
D.Multiply the whole sum by .
- 5.
When adding and using the algorithm, which digit in is aligned with the in ?
A.B.C.D. - 6.
Suppose we are adding two digits and in a column with an existing carry of . If the resulting sum in that column is , what are the new values for the digit written below and the carry for the next column?
A.Write , Carry
B.Write , Carry
C.Write , Carry
D.Write , Carry
- 7.
The digit-by-digit algorithm is described as 'much faster' than the dot method. If adding two 6-digit numbers takes basic operations using the algorithm, roughly how many dots would have to be drawn to find the sum of and using the explicit method?
A.B.C.D. - 8.
A visual representation of the algorithm shows 'Carry' as a small marble moving to the next column. In the addition of , which specific marble movements occur?
A.Marbles move from Units to Tens, Tens to Hundreds, and Hundreds to Thousands
B.Marbles move from Units to Tens and Thousands to Ten-Thousands
C.Marbles move from Units to Tens, Tens to Hundreds, Hundreds to Thousands, and Thousands to Ten-Thousands
D.No marbles move because the sum of the first column is 10
- 9.
Suppose a system uses 'Base-6' instead of 'Base-10'. The algorithm remains the same, but the carry is set to 1 if the sum is . If we add the numbers and , what are the resulting carry values generated for the second column and the final 'Step 5' overflow?
A.Carry to tens = 1, Carry to hundreds = 0
B.Carry to tens = 1, Carry to hundreds = 1
C.Carry to tens = 0, Carry to hundreds = 1
D.Carry to tens = 2, Carry to hundreds = 1
- 10.
An algorithm researcher defines 'Efficiency' () as , where is the numerical value of the sum and is the number of steps (digit-additions) in the column algorithm. Calculate the change in efficiency when adding compared to .
A.Efficiency increases by 300%
B.Efficiency remains constant
C.Efficiency increases by 800%
D.Efficiency decreases by 50%
Download the worksheet for The World of Algorithms - Adding Numbers to practice offline. It includes additional chapter-level practice questions.
Adding Numbers Digit by Digit
SubtopicAdding Numbers Digit by Digit under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
When following the addition algorithm for the problem , what is the specific value of the 'carry' that is set after calculating the sum in the tens column (the middle digits)?
A.B.C.D. - 2.
Suppose you are using the step-by-step algorithm to add two numbers, and . In Step 2, you calculate the sum of the rightmost digits to be . According to the algorithm, which digit should be written directly below those two digits, and what value should the 'carry' be set to for the next step?
A.Write , set carry to
B.Write , set carry to
C.Write , set carry to
D.Write , set carry to
- 3.
How many columns will be processed in the addition of ?
A.B.C.D. - 4.
In the problem , what is the value of carry when you move from the units column to the tens column?
A.B.C.D. - 5.
During the execution of the algorithm for , a trace of the 'sum' calculated at each column (including incoming carries) is recorded. What is the sequence of these sums from right to left?
A.B.C.D. - 6.
Suppose we are adding two -digit numbers using the Indian place-value system. If the result of the hundreds column addition (Step 3) is a sum of and the carry was , what instruction must be executed to complete the final answer according to Step 5 of the algorithm?
A.Write in the hundreds column
B.Write in the hundreds column and to its left
C.Write in the hundreds column and to its left
D.Discard the carry since there are no more columns
- 7.
When executing the addition algorithm for , identify the step where the carry value is set to .
A.After adding the units column ()
B.After adding the tens column ( + incoming carry)
C.After adding the hundreds column ( + incoming carry)
D.The carry is never set to in this problem
- 8.
Suppose we add and , both are -digit numbers. If the addition generates a carry in every possible column (from units to the leftmost column), what is the minimum possible value for the sum of the digits of the resulting -digit sum?
A.1
B.2
C.D. - 9.
An explorer finds an ancient tablet that describes an addition algorithm. It specifies that for , the digits must be aligned by their rightmost ends. If the explorer follows the steps and reaches the final column (hundreds), what is the sum of digits plus the incoming carry for that column, and does it trigger Step 5?
A.Sum is 9, No Step 5
B.Sum is 10, Yes Step 5
C.Sum is 11, Yes Step 5
D.Sum is 10, No Step 5
- 10.
During the addition of two 4-digit numbers, the algorithm finds that in the hundreds column (the third column from the right), the sum of the digits plus the carry is 19. What specific value is written in the result row for this column, and what is the carry value for the next column?
A.Write 9, Carry 1
B.Write 1, Carry 9
C.Write 19, Carry 0
D.Write 9, Carry 0
Download the worksheet for The World of Algorithms - Adding Numbers Digit by Digit to practice offline. It includes additional chapter-level practice questions.
Greatest Common Divisor
SubtopicGreatest Common Divisor under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
The subtraction algorithm is applied to find . Following the rule and reversing if , which sequence of pairs is correct?
A.B.C.D. - 2.
A table displays the trace of an algorithm to find divisors of by checking from to :
Divides ? Action Yes Add to list Yes Add to list No Ignore Yes Add to list If this process continues until , how many elements will be in the final
list-of-divisors?A.B.C.D. - 3.
In the context of algorithm efficiency, why is the range for checking common divisors of and restricted to to instead of to ?
A.Common divisors must be prime
B.A divisor of a number cannot be larger than the number itself
C.To ensure the list is always in decreasing order
D.The is always equal to the minimum of the two numbers
- 4.
If an algorithm finds that the set of common divisors for two numbers is , what is the value of the Highest Common Factor (HCF)?
A.B.C.D. - 5.
Suppose we have two lists of divisors, and . If an algorithm creates a new list by taking elements present in both, what is the average (mean) of the elements in ?
A.B.C.D. - 6.
Two gears and are engaged. has 126 teeth and has 162 teeth. An algorithm calculates the GCD of the tooth counts to determine the number of teeth that pass before the same two teeth meet again. What is the sum of the digits of this GCD?
A.B.C.D. - 7.
An algorithm stores the 'list-of-divisors' for in an array . If the algorithm is modified to only store divisors that satisfy the condition , how many elements will be in the list ?
A.B.C.D. - 8.
A data structure stores the divisors of 144 in an ordered list and the divisors of 216 in an ordered list . An algorithm creates a new list containing only the common divisors. What is the sum of the last three elements of ?
A.180
B.144
C.132
D.108
- 9.
A farmer has 945 cows and 2475 sheep. He wants to form them into flocks, keeping cows and sheep separate and having the same number of animals in each flock. If these flocks are as large as possible, and the farmer charges a grazing fee of Rs 200 per flock, what is the total grazing fee he will collect?
A.Rs 15,200
B.Rs 1,520
C.Rs 11,400
D.Rs 7,600
- 10.
A tailor has two pieces of cloth of widths 112 cm and 140 cm. She wants to cut both pieces into strips of equal width, as wide as possible, to make ribbons. After cutting, she finds the total number of ribbons. If each ribbon is 2 meters long, what is the total area of all the ribbons produced in square centimeters?
A.50,400 cm
B.25,200 cm
C.5,600 cm
D.14,000 cm
Download the worksheet for The World of Algorithms - Greatest Common Divisor to practice offline. It includes additional chapter-level practice questions.
Computing the Divisors of a Number
SubtopicComputing the Divisors of a Number under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
Consider the execution of the algorithm to find the divisors of . A student records the 'list-of-divisors' at various stages. Which number will be added to the list immediately after the number is added?
A.B.C.D. - 2.
If the divisor algorithm is applied to the number , which of the following diagrams correctly represents the 'list-of-divisors' state immediately after the step where is completed?
A.B.C.D. - 3.
A student is following the algorithm to find the divisors of . While checking the numbers in the sequence , which of the following is the first value of that the algorithm will check but not add to the 'list-of-divisors'?
A.B.C.D. - 4.
A student correctly follows the algorithm for . What is the size (number of elements) of the final 'list-of-divisors'?
A.B.C.D. - 5.
During the execution of the divisor algorithm for , what is the result of the divisibility test and the action taken for ?
A.True; 11 is added to the list.
B.False; list remains unchanged.
C.True; 2 is removed from the list.
D.False; 11 is set as the value of carry.
- 6.
If the algorithm for finding divisors is executed for , which of the following describes the sequence of values that result in an update to the 'list-of-divisors'?
A.B.C.D. - 7.
An algorithm for finding divisors of is being executed. Let be the sum of all elements currently in the 'list-of-divisors'. What is the value of immediately after the algorithm processes ?
A.B.C.D. - 8.
In the execution of the divisor algorithm for , let be the sum of all values of that failed the divisibility test and be the sum of all values of that passed the test. Calculate the value of and identify its relationship to .
A.; it is equal to
B.; it is equal to
C.; it is the sum of divisors
D.; it is equal to
- 9.
For a mystery number , the algorithm's 'list-of-divisors' is . If the algorithm is currently at step , and the list has not been updated since , what is the smallest possible value for the final element that will eventually be added to this list?
A.B.C.D. - 10.
During the execution of the algorithm for , a student calculates the product of the last two elements currently in the 'list-of-divisors' every time an update occurs (starting from when the list has at least 2 elements). What is the maximum value this product reaches throughout the execution?
A.B.C.D.
Download the worksheet for The World of Algorithms - Computing the Divisors of a Number to practice offline. It includes additional chapter-level practice questions.
Finding the Greatest Common Divisor
SubtopicFinding the Greatest Common Divisor under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
Suppose you are comparing two lists of divisors to find common elements. For any two positive integers and , which number is guaranteed to be the first element added to the list of common divisors?
A.B.C.The smaller of or
D.The sum of and
- 2.
When computing the GCD of two large numbers using the systematic list-comparison method, we first obtain two lists of divisors sorted in increasing order. What is the standard next step to determine the GCD?
A.Multiply all numbers that appear in both lists.
B.Identify the largest value that appears in both lists.
C.Find the smallest value that appears in both lists.
D.Divide the rightmost element of the first list by the rightmost element of the second list.
- 3.
A student is finding the Greatest Common Divisor (GCD) of and by listing their divisors. If the list of common divisors is , which element of this list represents the GCD?
A.B.C.D. - 4.
If we compare and , what is the largest number that appears in both lists?
A.B.C.D. - 5.
If an algorithm to find the divisors of takes seconds for a -digit number, it is observed that for a -digit number, the same algorithm takes approximately seconds. This suggests the work is proportional to which of the following?
A.The number of digits in
B.The square of the number of digits in
C.The actual value of
D.The log of the value of
- 6.
An algorithm finds the common divisors of two numbers and and stores them in a list . If the sum of all elements in is and the GCD of and is , which of the following could be the complete list ?
A.B.C.D. - 7.
When executing the algorithm for by comparing sorted divisor lists, the complexity (amount of work) is related to the number of divisors. If and , how many elements will be in the 'common-divisors' list?
A.B.C.D. - 8.
An algorithm is written to find the GCD of and . By expressing the numbers as products, the algorithm identifies common factors. What is the value of the GCD, and how many distinct prime factors does it have?
A.with prime factors
B.with prime factors
C.with prime factors
D.with prime factor
- 9.
Three alarm clocks are set to beep at intervals of minutes, minutes, and minutes. To find the largest possible interval that divides all three, a student uses the divisor-list comparison method. What is the difference between the largest common divisor and the second-largest common divisor found in the list?
A.B.C.D. - 10.
A school organizes its students into groups for a parade. There are students in the primary section and students in the middle section. Each group must have the same number of students and must contain students from only one section. If the groups are made as large as possible, what is the total number of groups formed from both sections combined?
A.B.C.D.
Download the worksheet for The World of Algorithms - Finding the Greatest Common Divisor to practice offline. It includes additional chapter-level practice questions.
First Algorithm for gcd
SubtopicFirst Algorithm for gcd under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
Why is it necessary to find the 'rightmost element' of the 'common-divisors' list to identify the greatest common divisor in this algorithm?
A.Because the list is built by checking divisors in decreasing order.
B.Because the list is built by checking divisors in increasing order, placing the largest at the end.
C.Because the rightmost element is always a prime number.
D.Because the algorithm randomly shuffles the list before reporting.
- 2.
In the First Algorithm to find the of two numbers, we check if each element from 'divisors-of-m' exists in 'divisors-of-n'. If and , which of the following divisors of will fail this check and NOT be added to the 'common-divisors' list?
A.1
B.3
C.4
D.The algorithm does not perform this check.
- 3.
If the First Algorithm is used to find , and the final 'common-divisors' list is identified as , which specific element is reported as the final answer in Step 5?
A.1
B.2
C.4
D.8
- 4.
According to the systematic steps of the First Algorithm, which list must be completely generated before the comparison process in Step 4 can begin?
A.Only the 'common-divisors' list.
B.Both the 'divisors-of-m' and 'divisors-of-n' lists.
C.The list of all odd numbers up to .
D.The list of prime numbers up to .
- 5.
If is a prime number , and is another prime number (where ), what will be the length of the 'common-divisors' list generated by the algorithm?
A.0
B.1
C.2
D.3
- 6.
In the list , which represents the common divisors of and , the index of the GCD (using 1-based indexing) is:
A.1
B.2
C.3
D.4
- 7.
Why does the First Algorithm for gcd check numbers from up to to find 'divisors-of-m'?
A.Because a divisor of cannot be larger than .
B.Because it is required to reach .
C.To ensure we find only prime numbers.
D.It is a rule for all algorithms in the Indian number system.
- 8.
A student is tracing the First Algorithm for . After generating
divisors-of-480anddivisors-of-720, the comparison step begins. Which of the following numbers indivisors-of-480is the smallest value that is greater than 10 and is NOT included in thecommon-divisorslist?A.12
B.15
C.16
D.20
- 9.
In the First Algorithm for , if and , the algorithm determines the
common-divisorslist. What is the arithmetic mean (average) of the smallest and the largest elements in thecommon-divisorslist?A.577.5
B.578
C.1155
D.576
- 10.
During the execution of the First Algorithm for , the list
divisors-of-288is generated. Let be this list. A student labels the elements of as . How many of these elements will be successfully added to thecommon-divisorslist in Step 4?A.10
B.12
C.14
D.16
Download the worksheet for The World of Algorithms - First Algorithm for gcd to practice offline. It includes additional chapter-level practice questions.
Data Structures
SubtopicData Structures under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
In a data structure representing a sorted list of common divisors , which position (or index) holds the Greatest Common Divisor (GCD)?
A.The leftmost position
B.The second position from the left
C.The middle position
D.The rightmost position
- 2.
Consider an algorithm that tracks the steps of a search. It uses a data structure called
visited_nodeswhich starts as an empty list[]. In each step, if it visits a new number, it adds it to the end of the list. After visiting the numbers and in that order, what is the state ofvisited_nodes?A.[5, 7, 12]
B.[12, 7, 5]
C.[5, 12, 7]
D.[7, 12, 5]
- 3.
An algorithm processes a list of integers
L = [15, 22, 9, 31, 18]and creates a new data structureEven_Listcontaining only the even numbers fromL, maintaining their original relative order. What are the contents ofEven_List?A.[15, 9, 31]
B.[22, 18]
C.[18, 22]
D.[22, 9, 18]
- 4.
When building an algorithm, why do we assign names like
list_of_divisorsorcurrent_carryto intermediate quantities?A.To make the algorithm more difficult to read
B.To avoid having to perform any calculations
C.To refer back to these values easily later in the algorithm's steps
D.Because names are required by the Indian place-value system
- 5.
A student is writing an algorithm to compare two lists of divisors, and , both sorted in ascending order. The goal is to find the 'second largest common divisor'. If and , what value will the algorithm identify?
A.B.C.D. - 6.
An algorithm uses a data structure named
exponent_mapto store the prime factorization of a number as a list of exponents for the primes in order. For example, , so its map is . If the algorithm computes theexponent_mapfor , what is the sum of all elements in that list (up to the largest prime factor)?A.B.C.D. - 7.
In a certain algorithm, a 'difference-list' is created from a sorted list of primes . The element of the difference-list is calculated as . Which of the following represents the correctly generated 'difference-list'?
A.B.C.D. - 8.
An algorithm
Prime-Power-Organizerepresents a number as a nested list of pairs[[p1, e1], [p2, e2], ...]where is a prime factor and is its exponent. If the algorithm processes , it stores this in a data structure . It then performs a transformation to create a new list containing only the exponents. What is the sum of the elements in the data structure ?A.5
B.6
C.7
D.8
- 9.
Consider an algorithm that tracks the 'Density' of divisors. For a number , it creates a data structure
Div-List. It then calculates the 'Gap-List' where for all elements in the sorted list. If , what is the maximum value found in the resultingGap-Listdata structure?A.4
B.6
C.8
D.12
- 10.
In a logistics algorithm, a data structure
Package-Weightsstores weights in kg: . To optimize shipping, the algorithm creates a listCumulative-Loadwhere the -th element is the sum of the first weights. It then checks a constraint: any load exceeding 60 kg requires an extra vehicle. The algorithm flags the index inCumulative-Loadwhere this first happens. What is the value of the flagged index (using 1-based indexing) and the value stored at that index?A.Index 3, Value 55
B.Index 4, Value 80
C.Index 3, Value 60
D.Index 4, Value 65
Download the worksheet for The World of Algorithms - Data Structures to practice offline. It includes additional chapter-level practice questions.
Improving the Algorithm
SubtopicImproving the Algorithm under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
Consider an algorithm that scans for the greatest common divisor of and by checking from to . For which of the following values of will the 'is-common-divisor' check be true and cause an update to the most-recent-common-divisor variable?
A.B.C.D. - 2.
In the optimized algorithm for GCD, we maintain only the
most-recent-common-divisorinstead of a full list of common divisors. Which statement best explains why earlier common divisors like can be safely overwritten when a later common divisor like is found?A.Common divisors must always be prime numbers.
B.The algorithm only needs to find the largest common divisor.
C.Smaller divisors are automatically deleted by the computer memory.
D.The variable can only store even numbers.
- 3.
An algorithm is designed to find common divisors of two numbers and . If the algorithm checks every integer from to and then every integer from to separately, it performs checks. If we optimize this to a single scan up to , how many checks are saved when and ?
A.B.C.D. - 4.
When using the 'most-recent-common-divisor' variable approach for and , the variable is updated every time a common divisor is found while scanning from to . What is the third value stored in this variable during the execution?
A.B.C.D. - 5.
Suppose we execute a 'most-recent-common-divisor' algorithm for . The algorithm initializes the variable to and scans from to . What is the value of the variable immediately after the loop finishes checking , but before it checks ?
A.B.C.D. - 6.
When improving a divisor-finding algorithm for to 'do away with lists', we maintain only the
most-recent-common-divisor. In a trace where and , the variable is updated at , , and finally . Why are the values and considered 'useless' once the loop reaches ?A.Because they are prime numbers and is composite.
B.Because they are not actual divisors of .
C.Because the goal is to find the largest common divisor, and is greater than both.
D.Because and are factors of and are therefore redundant.
- 7.
Consider the following algorithm for finding the of two numbers and .
Step Action 1 Set 2 For from to 3 If AND then Set 4 Output If and , identify the set of values that takes in Step 3 which specifically result in an update to the variable .
A.B.C.D. - 8.
An algorithm analyzer is looking at the work growth of the GCD scan. If the minimum of two numbers increases from a -digit integer to a -digit integer, by what factor does the worst-case number of iterations increase in the 'combined scan to ' algorithm?
A.B.C.D. - 9.
A student proposes a 'Step-Skip' improvement: for , scan from to , but only check even numbers if both and are even. If and , how many iterations are performed using this 'Step-Skip' scan compared to a standard to scan?
A.vs
B.vs
C.vs
D.vs
- 10.
Two algorithms are tested on and . Algorithm 1 finds all common divisors and stores them in a list . Algorithm 2 uses the 'most-recent' variable method. If we define 'efficiency loss' as the number of elements in that are smaller than the actual GCD, what is the 'efficiency loss' for these specific inputs?
A.B.C.D.
Download the worksheet for The World of Algorithms - Improving the Algorithm to practice offline. It includes additional chapter-level practice questions.
Analysing these Algorithms
SubtopicAnalysing these Algorithms under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
The table below compares the amount of work done by two different algorithms, and , for numbers with different values. Based on the growth shown, which statement accurately describes the workload of Algorithm ?
A.The work is proportional to the number of digits.
B.The work is proportional to the value of the number.
C.The work is constant regardless of the value.
D.The work doubles for every additional digit.
- 2.
A specific algorithm for processing a number takes units of work for every digit in the number. If we replace a -digit number with a -digit number, how many times does the total workload increase?
A.5 times
B.8 times
C.10 times
D.100 times
- 3.
Which mathematical operation is used in the 'reduction step' of Āryabhaṭa’s improved GCD algorithm to make it more efficient than Euclid's subtraction?
A.Addition
B.Multiplication
C.Remainder (Modulo)
D.Square Root
- 4.
Using the column addition algorithm for two 6-digit numbers, what is the minimum number of single-digit additions performed?
A.B.C.D. - 5.
When we analyze the 'list-of-divisors' algorithm that checks every from to , we find it is inefficient for large . If a computer can perform checks per second, what is the smallest number of digits a number can have such that the algorithm might take more than 10 seconds to complete?
A.digits
B.digits
C.digits
D.digits
- 6.
In the analysis of addition algorithms, counting dots for takes 100 units of work. Column addition for takes roughly 2 units of work (adding two columns). What is the ratio of work (Counting : Column) for the sum ?
A.B.C.D. - 7.
If the effort to execute an algorithm on a number is proportional to the number of its divisors, which of the following inputs would likely require the most work?
A.(Prime)
B.()
C.()
D.(Prime)
- 8.
An algorithm's work is related to the number of digits by the formula for some constant . If increasing the number of digits from to adds units of work, what is the value of the constant ?
A.B.C.D. - 9.
A student claims that the column-addition algorithm is 'digit-proportional'. If adding two -digit numbers takes milliseconds, approximately how much time would it take to add two -digit numbers using the same logic?
A.B.C.D. - 10.
A programmer is deciding between two GCD algorithms for a mobile app. Algorithm 1 scans up to . Algorithm 2 uses repeated subtraction. If the typical inputs are and , which algorithm will be more likely to cause the app to freeze, and why?
A.Algorithm 1, because it will perform iterations.
B.Algorithm 2, because it will perform approximately subtractions.
C.Algorithm 1, because it will perform iterations.
D.Both will take the same amount of time.
Download the worksheet for The World of Algorithms - Analysing these Algorithms to practice offline. It includes additional chapter-level practice questions.
Euclid's Algorithm for gcd
SubtopicEuclid's Algorithm for gcd under The World of Algorithms for Grade 9 CBSE.
Preview questions (no answers)
- 1.
A student is finding the greatest common divisor of two numbers and . If , what is the first step they should perform to follow the standard Euclid-style algorithm steps precisely?
A.Subtract from
B.Reverse the numbers to compute
C.Report as the answer
D.Divide by
- 2.
In the subtraction-based algorithm for , if the algorithm starts with and , which of the following is the immediate next reduction state according to the step 'Otherwise, reduce the problem to compute '?
A.B.C.D. - 3.
When comparing two algorithms for finding the greatest common divisor, if the number of steps in Algorithm A is proportional to the values of the numbers, and the number of steps in Algorithm B is proportional to the number of digits in the numbers, which statement is true for very large inputs?
A.Algorithm A is faster.
B.Algorithm B is faster.
C.Both algorithms take the same number of steps.
D.Algorithm B requires more memory.
- 4.
If we use the improved division-based algorithm to find the greatest common divisor of and , what is the result of the first reduction step ?
A.B.C.D. - 5.
A student is asked to calculate where and . If , how many reduction steps are required using Aryabhata's division-based algorithm to find the result?
A.1
B.2
C.3
D.4
- 6.
In the context of Euclid's 'tiling' justification, if a square tile of side can exactly cover a floor of cm by cm, it must also be able to tile a floor of which of the following dimensions created by the first reduction step of the division algorithm?
A.105 cm by 42 cm
B.105 cm by 63 cm
C.252 cm by 147 cm
D.147 cm by 105 cm
- 7.
Following the systematic algorithm to find the list of divisors for , the numbers are checked from to . What is the value of the index (position) of the number in the final
list-of-divisors?A.4th
B.5th
C.6th
D.7th
- 8.
A student is asked to find where and . Using the principles of Euclid's subtraction algorithm, what is the most efficient first step to take, and what is the resulting GCD?
A.Calculate ; GCD is
B.Calculate ; GCD is
C.Calculate ; GCD is
D.Factorize both numbers; GCD is
- 9.
A clockmaker has two gears. Gear A has teeth and Gear B has teeth. To synchronize them, he needs the largest common factor of teeth. He uses a modified algorithm where he first divides both numbers by as many times as possible, keeps track of these factors, and then applies Euclid's subtraction to the remaining odd numbers. After dividing and by repeatedly, which pair of numbers will he apply the subtraction algorithm to?
A.B.C.D. - 10.
A farmer has two lengths of fence wire: meters and meters. He wants to cut them into several pieces of equal length, each piece being as long as possible. After finding the GCD using Aryabhata's algorithm, he realizes he needs to calculate the total number of pieces. How many pieces of wire will he have in total?
A.B.C.D.
Download the worksheet for The World of Algorithms - Euclid's Algorithm for gcd to practice offline. It includes additional chapter-level practice questions.