Class 9 Mathematics Chapter 11: The World of Algorithms
- 3 topics
- 141 MCQs
- 30 short answers
- 12 long answers
- 60 flashcards
- 12 games
- ~135 min read
- English
Adding Numbers, Digit by Digit
Adding by counting dots works, and stops being practical almost at once. The column method is the same answer reached a different way: align the digits from the right so place values meet, add each column, and carry a new group of ten to the left. Written out precisely it becomes an algorithm, and the reason it scales is that its work depends on how many digits there are rather than how large the numbers are.
Full explanation
Two ways to add, and only one of them scales
We first learned to add by drawing dots and counting them. For $5+7$ that is reasonable. For $473+695$ it is nearly twelve hundred dots.
The method we actually use
Write the numbers one below the other with the digits aligned from the right, so that units sit under units and tens under tens. Add each column from right to left. When a column reaches ten or more, write the units digit and carry one group of ten into the next column. If a carry is left at the end, it becomes a new leading digit.
Writing it down precisely makes it an algorithm
An algorithm is a step-by-step procedure described precisely enough that no step needs judgement. Our addition method becomes one as soon as we state the five steps, including the easily forgotten last step that writes the final carry.
Why it beats counting
Counting depends on the size of the numbers: each extra digit means ten times as many dots. The algorithm depends on the number of digits: each extra digit means one more column. At one dot per second $3347+2729$ takes over an hour and forty minutes to count, and about a minute to add.
And why it is correct
Each column is one place-value group. Groups can be totalled separately, and a group of ten units is exactly one ten, which is why it can be carried left instead of counted again.
Watch out for these
Practice MCQs with answers (47)
- A 1168
- B 1068
- C 1158
- D 1178
Show answer
Why:
Units $3+5=8$. Tens $7+9=16$, so write 6 and carry 1. Hundreds $4+6+1=11$, so write 1 and carry 1, and the last carry becomes the leading 1.
- A 11
- B 12
- C 13
- D 57
Show answer
Why:
Five dots and seven more dots tally to twelve, which is the same answer the column method gives.
- A 50
- B 54
- C 60
- D 66
Show answer
Why:
Units $3+7=10$, so write 0 and carry 1. Tens $3+2+1=6$.
- A 596
- B 616
- C 706
- D 606
Show answer
Why:
Units $4+2=6$. Tens $3+7=10$, write 0 and carry 1. Hundreds $3+2+1=6$.
- A 6076
- B 5076
- C 6066
- D 6086
Show answer
Why:
Units $7+9=16$, write 6 carry 1. Tens $4+2+1=7$. Hundreds $3+7=10$, write 0 carry 1. Thousands $3+2+1=6$.
- A 0
- B 1
- C 2
- D 9
Show answer
Why:
Two single digits total at most $9+9=18$, and at most 19 once an incoming carry is added, so only one new group of ten can ever form.
- A 18
- B 20
- C 19
- D 81
Show answer
Why:
The largest column is $9+9$ plus a carry of 1.
- A 4
- B 6
- C 8
- D 5
Show answer
Why:
Four columns give four digits, and Step 5 can add one more when the leftmost column overflows.
- A 4
- B 3
- C 5
- D 7
Show answer
Why:
Aligning on the right, the number of columns is set by the longer number.
- A 0900
- B 1000
- C 1010
- D 1100
Show answer
Why:
Every column overflows in turn, and the final carry supplies the leading 1.
- A 101
- B 121
- C 111
- D 211
Show answer
Why:
Units $6+5=11$, write 1 and carry 1. Tens $5+5+1=11$, write 1 and the last carry gives the leading 1.
- A 7028
- B 8018
- C 8038
- D 8028
Show answer
Why:
Units $9+9=18$ writes 8 carry 1; tens $8+3+1=12$ writes 2 carry 1; hundreds $5+4+1=10$ writes 0 carry 1; thousands $4+3+1=8$.
- A 300
- B 200
- C 310
- D 390
Show answer
Why:
Units $5+5=10$ writes 0 carry 1; tens $9+0+1=10$ writes 0 carry 1; hundreds $1+1+1=3$.
- A 1
- B 2
- C 3
- D 4
Show answer
Why:
Two extra digits mean exactly two extra columns, however large the numbers are.
- A 17
- B 19
- C 18
- D 81
Show answer
Why:
The largest single digits are 9 and 9.
- A 9998
- B 8999
- C 9989
- D 9999
Show answer
Why:
No column may overflow at the left, so the total must stop one short of ten thousand.
- A 10000
- B 09999
- C 10001
- D 11000
Show answer
Why:
All four columns overflow and Step 5 writes the fifth digit.
- A 15
- B 16
- C 17
- D 61
Show answer
Why:
The tens digits are 7 and 9, and no carry has reached them yet.
- A 132
- B 152
- C 142
- D 242
Show answer
Why:
Units $7+5=12$ writes 2 carry 1; tens $4+9+1=14$ writes 4 and the carry gives the leading 1.
- A 3.25
- B 4.15
- C 5.25
- D 4.25
Show answer
Why:
Written as $2.50 + 1.75$ the places line up: hundredths $0+5=5$, tenths $5+7=12$ writes 2 carry 1, units $2+1+1=4$.
- A 6
- B 5
- C 7
- D 9
Show answer
Why:
One column per place value, with a possible seventh digit from the final carry.
- A A number set out in the Indian place-value system
- B A step-by-step procedure that arrives at an answer
- C A shortcut that works for some numbers but not others
- D A guess that is checked afterwards by counting
Show answer
Why:
An algorithm is a precisely described sequence of steps, which is why it can be followed without judgement at each stage.
- A So that the longer of the two numbers is always written on top
- B So that each carry sits above the right digit
- C So that digits of the same place value meet in one column
- D So that the answer has the same number of digits
Show answer
Why:
Units must meet units and tens meet tens, because the method adds each place-value group separately.
- A Nothing at all would change, because the final carry is always zero
- B The answer would gain an extra digit that it should never have had
- C Only sums of one-digit numbers would fail
- D The final carry would be lost and large sums would come out short
Show answer
Why:
Without the last step, $473+695$ would read 168 instead of 1168 whenever the leftmost column overflows.
- A That we can add two single digits without counting them out
- B That both of the numbers being added have the same number of digits
- C That the two numbers have been written down in ascending order first
- D That no column total in the whole sum ever reaches as much as ten
Show answer
Why:
Every algorithm rests on basic steps taken as given; here it is single-digit addition.
- A Repeated counting of the dots, only arranged into neat columns
- B Grouping into units, tens and hundreds and adding each group
- C The fact that addition can be done in any order
- D A rule that holds only in the Indian number system
Show answer
Why:
Each column is one place-value group, and a group of ten units is carried into the tens group.
- A Ten times as many dots and ten times as many columns
- B The same number of dots and one more column
- C Ten times as many dots but only one more column
- D One more dot and one more column
Show answer
Why:
Counting grows with the size of the number; the column method grows with the number of digits.
- A Because the digits of the two numbers were not aligned on the right
- B Because single-digit sums are assumed to be known without counting
- C Because the leftmost column is added last
- D Because a column total of ten or more forms one new group of ten
Show answer
Why:
Ten units make exactly one ten, so at most one group is ever carried.
- A About one hour and forty minutes
- B Rather less than ten minutes of steady counting
- C A little under one minute of careful column work
- D About half a minute, counting one dot each second
Show answer
Why:
The two numbers together are over six thousand dots, and six thousand seconds is about an hour and three quarters.
- A About forty-five seconds
- B About one minute
- C About ten minutes
- D About one hour and forty minutes
Show answer
Why:
Four columns at fifteen seconds each is about a minute, however large the digits are.
- A The sheer size of the numbers, and not how many digits they have
- B The number of carries that happen to occur
- C The number of digits, not the size of the numbers
- D Whether the numbers are odd or even
Show answer
Why:
Adding one more column is one more step, which is why the method scales so much better than counting.
- A No, the steps as written only work for two numbers of equal length
- B No, because a carry cannot cross from the third column to the fourth
- C Yes, but only when the shorter of the two numbers is written on top
- D Yes, because the shorter number simply has no digit in the high columns
Show answer
Why:
Aligning on the right leaves the high columns with a single digit, which is added to the carry alone.
- A Write each number with its decimal points aligned
- B Remove the decimal points and add as whole numbers
- C Add the whole parts first and the fractions afterwards
- D Multiply both numbers by ten before adding
Show answer
Why:
Alignment by place value is what the right-to-left rule really means, and the decimal point marks where the places turn.
- A A description short enough to memorise quickly
- B A precise description that needs no judgement at any step
- C A description that works for the largest numbers first
- D A description written in symbols rather than words
Show answer
Why:
Precision is what lets a procedure be followed mechanically and still give the right answer.
- A Set the carry to 1 and write only the units digit below it
- B Move left without writing anything in that column
- C Set the carry to 0 and write the total below the column
- D Add the two digits again, including the carry
Show answer
Why:
A column total under ten forms no new group of ten, so nothing is carried.
- A Write the whole of the total below and set the carry to 0
- B Write the tens digit of the total below and set the carry to 0
- C Write nothing and carry the whole total left
- D Write the units digit below and set the carry to 1
Show answer
Why:
The ten in the total becomes one group in the next place up.
- A Repeat the column step until no digits remain on the left
- B Repeat the column step exactly three more times and then stop there
- C Stop as soon as a carry of 0 appears in any one of the columns
- D Return to the units column and check the whole sum through again
Show answer
Why:
The procedure ends when the columns run out, not after a fixed count.
- A It gives an approximate answer extremely quickly
- B It can be followed without understanding why it works
- C It needs fewer basic steps than counting dots
- D It works only for numbers under one thousand
Show answer
Why:
Correctness is argued once, and after that the steps can be trusted without re-deriving them.
- A Counting is the more reliable of the two for large numbers
- B The column method needs three-digit numbers
- C Both give the same answer, but one is far faster
- D They can disagree when a carry is involved
Show answer
Why:
Counting defines what addition means; the column method is a faster route to the same total.
- A One hundred times as many dots, and two more rows
- B Twice as many dots and two more columns
- C The same dots arranged in two more columns
- D One hundred times as many dots but only two more columns
Show answer
Why:
Two extra digits multiply the dots by a hundred and add two column steps.
- A Because the carry always moves towards higher place values
- B Because the leftmost digits of the two numbers are the largest ones
- C Because the units column never has a carry coming into it at all
- D Because the answer is read from left to right
Show answer
Why:
A new group of ten belongs one place to the left, so the work has to travel in that direction.
- A The steps would simply never finish at all, ever
- B The steps would still finish, but the answer could be wrong
- C The steps would finish and always be right
- D The steps could not be started
Show answer
Why:
It still terminates, which is why the fault is easy to miss; it is simply incorrect whenever the last column overflows.
- A Only when both numbers are the same length exactly
- B Only when no column total reaches ten
- C Only when the leftmost column total is under ten
- D Only when the numbers are both even
Show answer
Why:
If the final column does not overflow there is no last carry to write, so the missing step costs nothing.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
Both are true, and R is exactly why A holds: 19 is one ten and nine units, so at most one new group of ten can form.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
Both are true, but R is not the reason. We align from the right so that digits of the SAME place value share a column; that the rightmost column holds units is a fact about place value, not the justification.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
A is true: the final carry supplies a fifth digit. R is false, because $9+9+1=19$ gives a carry of 1 and never 2.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
A is false: without Step 5 the steps still terminate normally and simply give a wrong answer whenever the last column overflows. R correctly describes what Step 5 does.
Important short questions (10)
An algorithm is a precise step-by-step procedure that arrives at an answer, described so that each step can be followed without judgement. The column method for adding two numbers is an example.
So that digits of the same place value fall in the same column. The method adds units to units and tens to tens, so a right alignment is what makes each column one place-value group.
The largest total a column can reach is $9+9+1=19$. That forms exactly one new group of ten, so only 1 is ever carried.
Without Step 5 the final carry is never written, so the answer loses its leading digit whenever the leftmost column overflows. $473+695$ would read 168 instead of 1168. If the leftmost column totals less than ten, as in $123+45$, there is no final carry and the answer is unaffected.
Counting grows with the size of the number: one more digit means ten times as many dots. The column method grows with the number of digits: one more digit means one more column. Going from 3-digit to 5-digit numbers is a hundred times the dots but only two extra columns.
It assumes we can add two single digits without counting them out. That is acceptable because every algorithm is built from basic steps taken as given; without some such step the description would never end.
Yes. Aligned on the right, the two highest columns contain a digit from the longer number only. Step 3 adds that digit to the incoming carry, which the steps already allow, so nothing has to change.
Each number is a sum of place-value groups: units, tens, hundreds and so on. Addition can be regrouped, so the totals of corresponding groups can be added separately. Whenever a group of units reaches ten it forms one new ten, which is carried into the tens group. Doing this column by column therefore produces the same total as combining and counting everything at once.
Write the numbers with their decimal points aligned rather than their right-hand edges, padding with zeros so both have the same number of decimal places. This is the same rule, because aligning on the right was only ever a way of making place values meet, and the decimal point is where the place values turn from units to tenths.
Addition is defined by combining and counting. The algorithm is a faster procedure that is claimed to give the same answer, so it is the algorithm that needs justifying against the definition, not the other way round. That justification is the grouping argument.
Long answer questions (4)
Steps. 1 Write the numbers one below the other with digits aligned from the right. 2 Add the units, writing the total if it is under ten and setting the carry to 0, or writing the units digit and setting the carry to 1 if it is ten or more. 3 Move one column left and add the two digits and the carry, applying the same rule. 4 Repeat until no digits remain. 5 If the carry is 1 at the end, write it to the left.
Working: units $9+9=18$, write 8 carry 1; tens $8+3+1=12$, write 2 carry 1; hundreds $5+4+1=10$, write 0 carry 1; thousands $4+3+1=8$, write 8 carry 0. No final carry, so the answer is 8028.
Counting is driven by the size of the number. Each extra digit multiplies the quantity of dots by ten, so 3-digit numbers give ten times the dots of 2-digit ones and 5-digit numbers a hundred times the dots of 3-digit ones. The column method is driven by the number of digits: each extra digit adds exactly one column. Concretely, one dot a second makes $33+27$ a minute's work, $334+272$ ten times that, and $3347+2729$ a little over a hundred minutes. At fifteen seconds a column the same three sums take about half a minute, about forty-five seconds and about one minute.
They will be right whenever the leftmost column totals less than ten, because then the carry is 0 at the end and there is nothing for Step 5 to write. $123+45$ or $412+376$ are unaffected. They will be wrong whenever the leftmost column reaches ten or more, losing the leading digit: $473+695$ gives 168 rather than 1168, and $56+55$ gives 11 rather than 111. The mistake is hard to notice because the procedure still terminates normally and produces a plausible-looking number; nothing about the steps signals that anything was dropped.
Addition is defined by combining two collections and counting the result. Any whole number can be written as a sum of place-value groups, so $473$ is four hundreds, seven tens and three units. Combining two numbers therefore combines their groups, and since the order of addition does not matter, corresponding groups can be totalled separately. When a group reaches ten it is exactly one group of the next size, which is why it can be carried one place left rather than counted again. Working column by column from the right performs precisely this grouping, so it yields the same total as counting everything. The algorithm assumes two basic steps: that single digits can be added without counting, and that numbers are written in the base-ten place-value system.
Flashcards (20)
Play this topic
- Match each piece to what it does
- True or false about the algorithm
- Complete the statement
- Unscramble the vocabulary
The Greatest Common Divisor, from the Definition
The gcd of two numbers -- the same thing as their hcf -- can be found without prime factorisation at all, by working straight from the definition. List every divisor of each number, keep the ones that appear in both lists, and report the largest. Writing that down precisely needs two algorithms, one of which reuses the other, and the lists come out in increasing order for free so the answer is simply the last entry. It is plainly correct and, for large numbers, plainly slow.
Full explanation
A familiar answer, found a different way
The greatest common divisor of two numbers is the same number as their highest common factor. We have found it before using prime factorisation. Here we find it from the definition instead, which means saying exactly what a common divisor is and then looking for the greatest one.
Break the problem into pieces you can already do
We need the divisors of both numbers, and then the largest value present in both collections. Each piece is something we know how to do, which is what makes the problem tractable.
Listing the divisors of a number
Start with an empty list. Test every $j$ from 1 to $n$, and whenever $j$ divides $n$, add it to the end of the list. For $n = 18$ this gives $[1, 2, 3, 6, 9, 18]$. Notice the list comes out in increasing order, because the candidates were tried in increasing order.
Comparing the two lists
For 375 and 825 the lists are short enough to inspect, and the answer is 75. For 54000 and 81000 each list holds eighty entries and inspection stops being reliable, so the comparison becomes a step of its own: start an empty common-divisor list and keep every entry of the first list that also appears in the second.
Reading off the answer
Both lists increase, so the common list increases too, and the greatest common divisor is simply its rightmost entry. The list is never empty, because 1 divides every number.
Correct, and slow
This method is obviously right, since it follows the definition exactly. It is also expensive: finding the six divisors of 775 takes 775 divisibility tests, and $\gcd(54000, 81000)$ needs 81000 of them to produce 27000.
Watch out for these
Practice MCQs with answers (47)
- A 75
- B 25
- C 15
- D 55
Show answer
Why:
The common divisors are $[1, 3, 5, 15, 25, 75]$ and the greatest of them is 75.
- A 4
- B 6
- C 5
- D 9
Show answer
Why:
They are $[1, 2, 3, 6, 9, 18]$.
- A 3
- B 5
- C 4
- D 8
Show answer
Why:
They are $[1, 3, 5, 15]$.
- A 6
- B 7
- C 9
- D 8
Show answer
Why:
They are $[1, 3, 5, 9, 15, 27, 45, 135]$.
- A 6
- B 4
- C 5
- D 8
Show answer
Why:
They are $[1, 5, 25, 31, 155, 775]$, since $775 = 5^2 \times 31$.
- A 6
- B 8
- C 7
- D 9
Show answer
Why:
They are $[1, 3, 5, 15, 25, 75, 125, 375]$.
- A 10
- B 11
- C 12
- D 14
Show answer
Why:
They are $[1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825]$.
- A 4
- B 5
- C 8
- D 6
Show answer
Why:
The common list is $[1, 3, 5, 15, 25, 75]$.
- A 3
- B 2
- C 6
- D 9
Show answer
Why:
The list $[1, 2, 3, 6, 9, 18]$ is built in increasing order, so the third entry is 3.
- A 25
- B 75
- C 15
- D 55
Show answer
Why:
The list is in increasing order, so its rightmost entry is the greatest common divisor.
- A 105
- B 165
- C 125
- D 275
Show answer
Why:
Only 125 and 375 fail; the other six divisors of 375 appear in 825's list too.
- A 13500
- B 18000
- C 40500
- D 27000
Show answer
Why:
It is the rightmost entry of their common-divisor list.
- A 80
- B 64
- C 72
- D 81
Show answer
Why:
Checking every $j$ from 1 to 54000 finds 80 of them.
- A 60
- B 64
- C 72
- D 80
Show answer
Why:
Their common-divisor list has 64 entries, ending at 27000.
- A 6
- B 9
- C 18
- D 17
Show answer
Why:
It tests every $j$ in $1, 2, \ldots, n$, whether or not $j$ divides $n$.
- A 125
- B 187
- C 374
- D 375
Show answer
Why:
Every $j$ from 1 to $n$ is tested, so the work grows with $n$ itself.
- A 0
- B 1
- C 2
- D 9
Show answer
Why:
It starts empty, and entries are appended as divisors are found.
- A 0
- B 1
- C 2
- D 3
Show answer
Why:
1 divides every number, so it is always common.
- A 3
- B 7
- C 5
- D 31
Show answer
Why:
$775 = 5^2 \times 31$, so 3 and 7 do not divide it and 5 comes first.
- A 27
- B 15
- C 90
- D 45
Show answer
Why:
The list is $[1, 3, 5, 9, 15, 27, 45, 135]$, so 45 sits just below 135.
- A 375
- B 125
- C 175
- D 275
Show answer
Why:
Every number is its own greatest divisor, so the gcd of a number with itself is the number.
- A The leftmost entry of the common-divisor list
- B The rightmost entry of the common-divisor list
- C The longest of the two divisor lists
- D The first divisor found in both lists
Show answer
Why:
The lists are built in increasing order, so the greatest common divisor is the last entry.
- A Because the list is sorted once it is complete
- B Because divisors always come in pairs
- C Because the numbers are tested in order from 1 upwards
- D Because the smallest divisor is always 1
Show answer
Why:
Appending each divisor as it is found, while testing $j$ from 1 to $n$, produces an increasing list without any sorting step.
- A That we can list the prime factors of any number
- B That we can sort a list of numbers
- C That we already know the gcd
- D That we can tell when a smaller number divides a larger one
Show answer
Why:
Division testing is the step taken as given; everything else is built from it.
- A Because 1 divides every number
- B Because every number has at least two divisors of its own
- C Because the numbers may be equal
- D Because the list starts with 1 by definition
Show answer
Why:
1 is a divisor of everything, so it is common to any pair.
- A To prove that the algorithm gives the right answer every time
- B To run through its steps one at a time
- C To write the algorithm down precisely
- D To find a faster algorithm for the same job
Show answer
Why:
Executing is carrying the steps out; justifying is a separate matter.
- A So that the algorithm can be translated into any programming language
- B So that the reader knows which number is larger
- C So that each step can refer to a value unambiguously
- D So that the list stays in increasing order
Show answer
Why:
Without names, describing what to do each time a divisor is found becomes clumsy and imprecise.
- A The lists are not produced in any particular useful order at all
- B The two lists turn out to have nothing at all in common
- C Because 1 divides them both
- D Each list has 80 entries
Show answer
Why:
At 80 entries each, picking the largest shared value by eye is unreliable, which is why the comparison is made a step of its own.
- A Compare the two lists for shared entries
- B Sort both of the divisor lists into increasing order first
- C Factorise both of the numbers into their prime factors
- D Report the rightmost entry
Show answer
Why:
First the divisors of each number are listed, then the lists are compared, and only then is the answer read off.
- A In step with the number of divisors that $n$ happens to have
- B In step with $n$ itself
- C In step with the number of digits that $n$ is written with
- D It does not grow
Show answer
Why:
Every $j$ from 1 to $n$ is tested, so doubling $n$ doubles the testing, however few divisors are found.
- A A prime factor
- B The l.c.m.
- C The hcf
- D The mean
Show answer
Why:
Greatest common divisor and highest common factor are the same thing.
- A The smallest prime factor
- B Any prime
- C Zero
- D 1
Show answer
Why:
1 divides every number. ($n$ is also always in its own list, but the question asks for the number common to all of them.)
- A As soon as it is found
- B Only after a duplicate check
- C After the range is tested
- D Only if it divides both
Show answer
Why:
Appending on discovery is what keeps the list in increasing order.
- A Because the list is sorted before reading
- B Because that list is itself in increasing order
- C Because the gcd is always the first entry
- D Because there is only one common divisor
Show answer
Why:
Both divisor lists are increasing, so the common list is too, and its last entry is the largest.
- A The list would then no longer be in increasing order at all
- B The gcd reported at the end would always be 1
- C Nothing, because 1 divides every number
- D The list would hold 1 twice
Show answer
Why:
1 is appended on the first test anyway, so pre-seeding it would only duplicate the entry; starting empty keeps the rule uniform.
- A 25 and 75, because they are not factors of 825 at all
- B 5 and 15, because 825 is not divisible by either of them
- C 3 and 11
- D 125 and 375
Show answer
Why:
The other six divisors of 375 all appear in 825's list, which is why the common list runs $[1, 3, 5, 15, 25, 75]$.
- A The divisors algorithm
- B The prime factorisation method taught in earlier classes
- C A sorting step on lists
- D The addition algorithm from the previous topic
Show answer
Why:
Steps 1 and 2 are each a call to the divisors algorithm.
- A Because the pieces can be done in any order
- B Because each piece is something we already know how to do
- C Because it makes the algorithm shorter
- D Because the gcd is hard to define
Show answer
Why:
Listing divisors and comparing lists are both familiar jobs; the gcd becomes easy once it is expressed in terms of them.
- A $n$, since it is the larger of the two numbers given
- B $1$, since that is in every common-divisor list
- C $m$
- D $mn$
Show answer
Why:
Every divisor of $m$ divides $n$ too, so the common list is just the divisors of $m$ and its last entry is $m$.
- A Because divisors above $n/2$ are the ones most easily missed
- B Because the list must be built in order
- C Because 1 must be tested first
- D Because $n$ is a divisor of itself
Show answer
Why:
Stopping earlier would leave $n$ out of its own divisor list, and $n$ is needed for cases like $\gcd(375, 375)$.
- A Just $[1]$
- B The smaller number's divisors
- C Both lists joined
- D Empty, nothing
Show answer
Why:
1 is always common, so the list is never empty and the gcd is 1.
- A It uses lists rather than prime factors
- B Every step is described precisely enough to follow
- C It works for any two numbers
- D It reuses an earlier algorithm
Show answer
Why:
Precision is the test: the five steps leave nothing to judgement.
- A Because the common-divisor list is always shorter than both lists
- B Because the lists are built in increasing order
- C Because a divisor cannot exceed the number it divides
- D Because 1 is always a common divisor
Show answer
Why:
Every entry of the common list divides the smaller number, so none of them can be bigger than it.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
Both are true, and R is why: 1 is a divisor of both numbers whatever they are, so it is always in the common list and the gcd is at least 1.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
Both are true, but R is not the reason. The order comes from testing $j$ from 1 upwards and appending each divisor as it is found.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
A is true, since every $j$ from 1 to $n$ is tested. R is false: 775 has only six divisors, $[1, 5, 25, 31, 155, 775]$.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
A is false: the leftmost entry is always 1. R is true, and it is why the RIGHTMOST entry is the one to report.
Important short questions (10)
$[1, 2, 3, 6, 9, 18]$. The algorithm tests $j$ from 1 upwards and appends each divisor as it is found, so the list is increasing without any sorting step.
Because 1 divides every number, so 1 is a common divisor of any pair. The gcd is therefore at least 1.
It reports the rightmost entry of the common-divisor list. That is enough because both divisor lists were built in increasing order, so the common list increases too and its last entry is the greatest.
divisors(375) is $[1, 3, 5, 15, 25, 75, 125, 375]$ and divisors(825) is $[1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825]$. Checking each entry of the first against the second keeps $[1, 3, 5, 15, 25, 75]$, since 125 and 375 are missing from the second list. The rightmost entry is 75, so $\gcd(375, 825) = 75$.
It makes 775 tests, one for each $j$ from 1 to 775, and finds $[1, 5, 25, 31, 155, 775]$. The cost therefore depends on the size of the number rather than on how many divisors it turns out to have.
Because $n$ divides itself and belongs in its own divisor list. Stopping early would leave it out, and it is needed for cases such as $\gcd(375, 375)$, whose answer is 375.
Every entry of the common-divisor list divides both numbers, and a divisor of a number cannot be larger than that number. So every common divisor is at most the smaller number, and the greatest of them is too.
Steps 1 and 2 are each a call to the divisors algorithm, once on $m$ and once on $n$. Because that algorithm was written out precisely -- start with an empty list, test every $j$ from 1 to $n$, append on discovery -- it can be invoked as a single step here without restating it. Its guarantee that the list comes out in increasing order is what lets step 5 simply read off the last entry.
Each number has 80 divisors, so the two lists are far too long to scan reliably for the largest shared value. What replaces it is an explicit step: start an empty common list, and for each entry of the first list check whether it appears in the second, appending it if so. The 64 shared entries then end at 27000, which is the gcd.
It is correct because it works directly from the definition: it finds every divisor of each number, keeps exactly those that are common, and reports the greatest. Nothing is assumed beyond being able to test divisibility. It is slow because the work grows with the numbers themselves: $\gcd(54000, 81000)$ needs 81000 divisibility tests to produce an answer of 27000, and almost all of those tests fail.
Long answer questions (4)
Algorithm: 1 start with an empty list-of-divisors; 2 for each $j$ in $1, 2, \ldots, n$, if $j$ divides $n$ then append $j$ to list-of-divisors.
Executing for 15: the list begins empty. 1 divides 15, giving $[1]$. 2 does not. 3 divides 15, giving $[1, 3]$. 4 does not. 5 divides 15, giving $[1, 3, 5]$. 6 to 14 do not divide 15. 15 divides itself, giving $[1, 3, 5, 15]$.
The basic step assumed is that we can tell whether a smaller number divides a larger one.
Algorithm: 1 let divisors-of-m be divisors($m$); 2 let divisors-of-n be divisors($n$); 3 start with an empty list common-divisors; 4 for each $x$ in divisors-of-m, if $x$ also appears in divisors-of-n then append $x$ to common-divisors; 5 report the rightmost entry of common-divisors as $\gcd(m, n)$.
On 375 and 825: divisors(375) is $[1, 3, 5, 15, 25, 75, 125, 375]$ and divisors(825) is $[1, 3, 5, 11, 15, 25, 33, 55, 75, 165, 275, 825]$. Of the eight entries in the first list, 125 and 375 are absent from the second, so common-divisors is $[1, 3, 5, 15, 25, 75]$. Its rightmost entry is 75, so $\gcd(375, 825) = 75$.
Each divisor list is built by testing $j$ from 1 upwards and appending every divisor as it is found, so each list is in increasing order by construction, with no sorting step. Step 4 walks the first list from left to right and appends the entries that also appear in the second, so it preserves that order and the common list increases too.
It matters because step 5 can then simply read the rightmost entry. Without the ordering guarantee the algorithm would need an extra step to search the common list for its largest member, and the justification for the answer being the greatest common divisor would have to be made separately.
The observation is true: apart from $n$, every divisor of $n$ is at most $n/2$. So testing $j$ beyond $n/2$ finds nothing new except $n$ itself. The proposal as stated is nonetheless wrong, because it would leave $n$ out of its own divisor list, and $n$ is needed: $\gcd(375, 375)$ must come out as 375, and divisors(18) must end at 18.
The repair is to test $j$ up to $n/2$ and then append $n$ directly, which keeps every list correct and roughly halves the testing. It is still slow, because the work remains proportional to $n$.
Flashcards (20)
Play this topic
- Match each name to what it holds
- True or false about the gcd algorithm
- Complete the statement
- Unscramble the vocabulary
Data Structures, and Two Faster Algorithms
Naming the values an algorithm keeps track of, and choosing how to hold them, is part of the algorithm itself: a list is a data structure. Three refinements then cut the gcd scan from m + n candidates to min(m, n) and finally replace the list with one running value. Euclid goes further by reducing the pair itself, and Aryabhata's division step turns a run of subtractions into a single remainder.
Full explanation
The values an algorithm keeps
Running an algorithm produces intermediate quantities, and they need names -- divisors-of-m, most-recent-common-divisor -- so that later steps can refer to them. They are also rarely simple numbers. Here they are lists held in ascending order, and a list is an example of a data structure: a way of organising information so the work can be done more efficiently.
Three refinements, same answer
Scanning for the divisors of $m$ and then of $n$ checks $m + n$ candidates. Merging the two passes into one cuts that to $\max(m, n)$. Collecting the COMMON divisors directly removes the two separate lists altogether, and since no common divisor can exceed the smaller number the scan can stop at $\min(m, n)$. Finally the list itself is unnecessary: each larger common divisor makes the earlier ones useless, so a single value started at 1 and updated on each improvement is enough.
Euclid reduces the problem instead
For $m \geq n$, $\gcd(m, n) = \gcd(n, m - n)$. Any common divisor $d$ of $m$ and $n$ divides the difference, since $m - n = (a - b)d$; and any $d$ dividing $n$ and $m - n$ divides their sum, which is $m$. The two pairs therefore share the same common divisors. Repeating the reduction shrinks the numbers until the second reaches 0, and then the first is the answer.
But subtraction is still too slow
On $\gcd(375, 825)$ it takes seven reductions. On $\gcd(99, 2)$ it takes about fifty-one, because it can only remove 2 at a time. The step count tracks the VALUE of the numbers, which is the very thing the chapter wanted to escape.
Aryabhata changes one line
Reduce to $\gcd(n, m \bmod n)$ rather than $\gcd(n, m - n)$. Subtracting $n$ from $m$ repeatedly ends at exactly $m \bmod n$, so one division finishes a whole run of subtractions. $\gcd(99, 2)$ falls from about fifty-one steps to two. The ordering step and the stopping rule are unchanged; only step 3 differs.
Watch out for these
Practice MCQs with answers (47)
- A 7
- B 5
- C 9
- D 12
Show answer
Why:
The chapter's trace runs $\gcd(825,375) \to \gcd(375,450) \to \gcd(450,375) \to \gcd(375,75) \to \gcd(75,300) \to \gcd(300,75) \to \ldots \to \gcd(75,0)$, with seven subtraction steps.
- A 1
- B 2
- C 3
- D 7
Show answer
Why:
$17 = 3 \times 5 + 2$, so the remainder is 2.
- A 3
- B 4
- C 5
- D 6
Show answer
Why:
$33 = 4 \times 7 + 5$.
- A 350
- B 440
- C 550
- D 450
Show answer
Why:
This is the first subtraction Euclid's algorithm performs on the pair.
- A 75
- B 0
- C 25
- D 50
Show answer
Why:
Step 2 says that if $n = 0$ the answer is $m$.
- A 0
- B 23
- C 1
- D 46
Show answer
Why:
Reducing gives $\gcd(23, 0)$, and Step 2 reports 23.
- A 1
- B 4
- C 2
- D 51
Show answer
Why:
$99 \bmod 2 = 1$, then $2 \bmod 1 = 0$, so the answer 1 arrives in two steps.
- A 12
- B 33
- C 99
- D 51
Show answer
Why:
Subtracting 2 at a time from 99 takes about half of 99 steps, which is why the division step replaces it.
- A 3
- B 2
- C 4
- D 6
Show answer
Why:
They are $(1, 18)$, $(2, 9)$ and $(3, 6)$.
- A 2
- B 3
- C 4
- D 5
Show answer
Why:
It updates at $k = 2$, $k = 3$ and $k = 6$; 4 and 5 do not divide 6.
- A 2
- B 3
- C 6
- D 4
Show answer
Why:
The last update in the scan sets most-recent-common-divisor to 6.
- A $m - n$
- B $m \times n$
- C $\max(m, n)$
- D $m + n$
Show answer
Why:
One scan to $m$ and another to $n$; combining them into a single pass reduces this.
- A $\max(m, n)$
- B $\min(m, n)$
- C $m + n$
- D $m - n$
Show answer
Why:
A single pass of $j$ from 1 to the larger of the two numbers suffices for both lists.
- A $\max(m, n)$
- B $\min(m, n)$
- C $m + n$
- D $m \times n$
Show answer
Why:
A common divisor cannot exceed the smaller number, so there is no point scanning past it.
- A 0
- B 2
- C 1
- D $m$
Show answer
Why:
1 is always a common divisor, so it is a safe starting value.
- A 2
- B 3
- C 5
- D 4
Show answer
Why:
4 does not divide 6, so most-recent-common-divisor stays at 3.
- A 499 CE
- B 199 CE
- C 399 CE
- D 599 CE
Show answer
Why:
The chapter dates it to 499 CE.
- A 25
- B 75
- C 85
- D 95
Show answer
Why:
This subtraction brings Euclid's algorithm to the pair $(375, 75)$.
- A 0
- B 2
- C 1
- D 49
Show answer
Why:
99 is odd, so dividing by 2 leaves 1.
- A $2$
- B $2k$
- C $3k$
- D $k$
Show answer
Why:
Subtracting 2 each time from an odd number takes about half its value in steps.
- A 100
- B 10
- C 25
- D 50
Show answer
Why:
Each extra digit multiplies the range by ten, so two digits multiply it by a hundred.
- A A kind of basic step
- B A data structure
- C An unnamed intermediate
- D A reduction to a simpler problem
Show answer
Why:
A data structure organises information so that an algorithm can work more efficiently.
- A So that the lists stay in ascending order
- B So that the algorithm can be justified
- C So that later steps can refer to them
- D So that the work tracks the digits
Show answer
Why:
Naming is what lets an algorithm be written down concisely.
- A $\gcd(m, n) = \gcd(m, n - m)$ for any two numbers at all
- B $\gcd(m, n)$ is the product of the two numbers divided by their lcm
- C $\gcd(m, n) = \gcd(m - n, n - m)$
- D $\gcd(m, n) = \gcd(n, m - n)$ when $m \geq n$
Show answer
Why:
Replacing the larger number by the difference leaves the set of common divisors untouched.
- A Because $m - n = (a - b)d$ when $m = ad$ and $n = bd$
- B Because $d$ divides every number below $m$ too
- C Because subtraction preserves divisors
- D Because $d$ is at most the smaller
Show answer
Why:
Factoring $d$ out of the difference shows it divides the difference too.
- A $m$ equals 0
- B $n = 0$
- C $m = n$ exactly
- D $n = 1$, since 1 divides all
Show answer
Why:
On reaching $\gcd(m, 0)$ the answer is $m$.
- A Checks whether $n$ is zero yet
- B Subtracts the smaller at once
- C Reverses the pair if $m < n$
- D Replaces $m$ with the remainder
Show answer
Why:
The reduction step assumes $m \geq n$, so the pair is ordered first.
- A Step 1 orders the pair with the smaller first
- B Step 2 stops once $n$ reaches 1
- C It drops the lists for one value
- D Step 3 uses $m \bmod n$ instead of $m - n$
Show answer
Why:
The stopping condition and the ordering step are identical; only the reduction differs.
- A One division does the work of many subtractions
- B Division is a basic step, subtraction is not
- C Subtraction fails on close numbers
- D Division keeps the pair ordered
Show answer
Why:
What remains after subtracting $n$ from $m$ as often as possible IS $m \bmod n$, so the division reaches it in one step.
- A Because the list cannot be kept in ascending order once it is built
- B Each new common divisor makes the earlier ones useless
- C Because a list is not a real data structure
- D Because 1 would appear twice
Show answer
Why:
Only the largest found so far matters, so a single running value replaces the whole list.
- A Because the larger number's divisors have all been found by that point
- B Because the scan would repeat a divisor
- C A common divisor cannot exceed the smaller number
- D Because the list ascends
Show answer
Why:
Every common divisor divides the smaller number, so nothing above it can qualify.
- A Yes, the Elements is the first mention
- B No, it is Aryabhata's method
- C Yes, and later Greeks refined it
- D He was the first to write it down
Show answer
Why:
Historians believe other Greek mathematicians knew it already; Euclid recorded it in the Elements.
- A Each refinement changes the effort, not what is computed
- B Because each one was justified afresh from scratch
- C Because they were checked on examples
- D Because the gcd is unique
Show answer
Why:
The first algorithm follows the definition, and every later version computes the same thing more cheaply.
- A Effort proportional to the smaller value
- B Effort proportional to the number of digits
- C Effort independent of the numbers
- D Effort tracking how many divisors
Show answer
Why:
That is the standard the addition algorithm met, and the subtraction version of Euclid does not.
- A Yes, since each reduction drops a whole digit
- B Yes, so the chapter stops here
- C No, $\gcd(2k+1, 2)$ needs about $k$ steps
- D No, it cannot handle a zero
Show answer
Why:
The step count tracks the value, not the number of digits, which is exactly what the division step repairs.
- A The whole-number part of the quotient of $m$ divided by $n$
- B The number of times $n$ can be subtracted from $m$ altogether
- C The smaller of $m$ and $n$
- D The remainder when $m$ is divided by $n$
Show answer
Why:
For instance $17 \bmod 5 = 2$ and $33 \bmod 7 = 5$.
- A That $d$ tiles $m$ and $n$ exactly when it tiles $n$ and $m - n$
- B That the gcd is the largest single block that fits $m$ exactly
- C That any number tiles with blocks of 1
- D That $m - n$ is smaller than both
Show answer
Why:
Blocks of size $d$ filling $m$ and $n$ also fill the difference, and conversely, which is why the common divisors are the same.
- A Avoid having to name the intermediate values it computes along the way
- B Organise information to work more efficiently
- C Guarantee the answer is correct
- D Reduce a problem to a simpler one
Show answer
Why:
Here the structure is a list, kept in ascending order.
- A Up to $n$ itself, exactly as the original algorithm already does
- B Up to $n/2$, since no divisor other than $n$ can be larger than that
- C Up to about $\sqrt{n}$
- D Up to $\min(m, n)$
Show answer
Why:
Each divisor below the square root pairs with one above it, so examining the small ones finds them all.
- A Nothing changes at all, because the same divisors are still collected
- B It stops working, because the pairs cannot be compared between lists
- C It becomes proportional to the number of digits
- D The list no longer arrives in ascending order
Show answer
Why:
Pairing produces the divisors out of order, so step 5's reading of the rightmost entry would no longer give the greatest.
- A They compute the same answer more cheaply
- B They compute a different answer that happens to agree most of the time
- C They each need their own justification
- D They are slower but clearer
Show answer
Why:
That is why correctness carries over without being re-argued each time.
- A Because Euclid was the one who wrote that version down
- B Because it follows the definition and is easy to justify
- C Because only it works for every pair
- D Because the faster ones differ
Show answer
Why:
Correctness is established on the obvious version, then efficiency is improved without changing what is computed.
- A 3
- B 5
- C 2
- D 7
Show answer
Why:
$825 \bmod 375 = 75$, then $375 \bmod 75 = 0$, so the answer 75 arrives in two steps where subtraction took seven.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
Both are true, and R is the justification: the two pairs have exactly the same set of common divisors, so they have the same greatest one.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
Both are true, but R is not the reason. Both algorithms stop at the same condition; the speed comes from reducing by $m \bmod n$ instead of $m - n$.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
A is true, which is why the subtraction version misses the chapter's goal. R is false: subtracting 2 from 99 gives 97, which has the same number of digits.
- A Both A and R are true, and R is the correct explanation of A
- B Both A and R are true, but R is not the correct explanation of A
- C A is true but R is false
- D A is false but R is true
Show answer
Why:
A is false: only Step 3 changes, and the ordering and stopping steps are identical. R is a correct definition of the remainder.
Important short questions (10)
For $m \geq n$, $\gcd(m, n) = \gcd(n, m - n)$. The process stops when the second number reaches 0, and then the answer is the first number.
A data structure is a way of organising information so that an algorithm can work more efficiently. The chapter uses lists, kept in ascending order.
Step 3. Euclid reduces $\gcd(m, n)$ to $\gcd(n, m - n)$; Aryabhata reduces it to $\gcd(n, m \bmod n)$. Steps 1 and 2 are identical.
Let $d$ be a common divisor, so $m = ad$ and $n = bd$ for natural numbers $a$ and $b$. Then $m - n = ad - bd = (a - b)d$, which is a multiple of $d$, so $d$ divides $m - n$.
$\min(6, 12) = 6$, and most-recent-common-divisor starts at 1. $k = 2$ divides both, so it updates to 2. $k = 3$ divides both, so it updates to 3. $k = 4$ and $k = 5$ do not divide 6, so it stays at 3. $k = 6$ divides both, so it updates to 6. The scan ends and the gcd is 6.
First, the two separate scans of $m$ and of $n$ are combined into one pass, cutting $m + n$ candidates to $\max(m, n)$. Second, the common divisors are computed directly rather than building two lists and comparing them. Third, since no common divisor can exceed the smaller number, the scan need only run to $\min(m, n)$.
Subtracting 2 repeatedly from 99 takes about 51 reductions, because each step removes only 2. The division step goes straight to the remainder: $99 \bmod 2 = 1$ and then $2 \bmod 1 = 0$, so it finishes in two.
The first algorithm was derived straight from the definition of the gcd: it finds every divisor of each number, keeps the common ones and reports the greatest, so its correctness is immediate. Each refinement then changes only how much work is done -- combining scans, computing the common list directly, keeping one running value instead of a list, or reducing by difference or remainder -- while computing the same quantity. Since what is computed is unchanged, the original justification carries over to each of them.
The scanning versions are proportional to the VALUE of the smaller number: going from a 3-digit to a 5-digit number multiplies the work by a hundred. Euclid's subtraction version is no better in the worst case, since $\gcd(2k+1, 2)$ takes about $k$ reductions. Aryabhata's division version is the one that improves matters, because each remainder step can shrink the numbers enormously: $\gcd(99, 2)$ falls from 51 steps to 2.
The divisors of 18 pair up as $(1, 18)$, $(2, 9)$ and $(3, 6)$, so every divisor below the square root has a partner above it. Examining only the numbers up to about $\sqrt{n}$ therefore finds all of them, which is a large saving on scanning to $n$. The cost is that the divisors no longer arrive in ascending order, so the gcd algorithm can no longer simply report the rightmost entry of the common list; it would need a separate step to find the largest.
Long answer questions (4)
Algorithm: Step 1, when the first number is the smaller, swap the pair over. Step 2, once the second number has fallen to zero, the first number is the answer. Step 3, in every other case replace the pair by $(n, m - n)$ and begin again.
Applying it: $\gcd(375, 825)$ reverses to $\gcd(825, 375)$, then reduces through $\gcd(375, 450)$, $\gcd(450, 375)$, $\gcd(375, 75)$, $\gcd(75, 300)$, $\gcd(300, 75)$, $\gcd(75, 225)$, $\gcd(225, 75)$, $\gcd(75, 150)$, $\gcd(150, 75)$, $\gcd(75, 75)$ and finally $\gcd(75, 0)$. Step 2 then reports 75. There are seven Step-3 reductions in all.
Suppose $d$ is a common divisor of $m$ and $n$. Write $m = ad$ and $n = bd$. Then $m - n = (a - b)d$, so $d$ divides $m - n$ as well, and $d$ is therefore a common divisor of $n$ and $m - n$.
Now suppose instead that $d$ divides both $n$ and $m - n$. Write $n = xd$ and $m - n = yd$. Then $m = n + (m - n) = xd + yd = (x + y)d$, so $d$ divides $m$ and is a common divisor of $m$ and $n$.
The two pairs therefore have exactly the same set of common divisors, so they have the same greatest one. The chapter shows this as a tiling: blocks of size $d$ that fill $m$ and $n$ also fill the leftover $m - n$.
First, the two scans are merged: instead of running 1 to $m$ and then 1 to $n$, a single pass of $j$ from 1 to $\max(m, n)$ adds $j$ to whichever lists it divides. The candidates checked fall from $m + n$ to $\max(m, n)$.
Second, the common divisors are computed directly: for each $j$, if $j$ divides both numbers it goes into one common list. The two separate lists and the comparison step disappear. Since a common divisor cannot exceed the smaller number, the scan can stop at $\min(m, n)$.
Third, the list itself goes. Each larger common divisor makes the earlier ones useless, so a single value most-recent-common-divisor is kept, started at 1 and updated whenever a larger common divisor appears. At the end it holds the gcd.
Euclid reduces $\gcd(m, n)$ to $\gcd(n, m - n)$; Aryabhata reduces it to $\gcd(n, m \bmod n)$. The justification is the same in form: a divisor tiles $m$ and $n$ exactly when it tiles $n$ and the remainder.
The difference is speed. Subtracting is the slow way of finding a remainder: what is left when $n$ can no longer be taken from $m$ IS $m \bmod n$. So one division replaces a whole run of subtractions. On $\gcd(375, 825)$ subtraction needs seven reductions and division needs two. On $\gcd(99, 2)$ the gap is extreme: subtraction grinds down 97, 95, 93 and so on for about 51 steps, while division gives $99 \bmod 2 = 1$ and then $2 \bmod 1 = 0$ in two.
Only the division version approaches the chapter's goal of effort proportional to the number of digits rather than to the value.
Flashcards (20)
Play this topic
- Match each step to what it does
- True or false about the refinements
- Complete the statement
- Unscramble the vocabulary
Class 9 Mathematics Chapter 11 — frequently asked questions
An algorithm is a precise step-by-step procedure that arrives at an answer, described so that each step can be followed without judgement. The column method for adding two numbers is an example.
So that digits of the same place value fall in the same column. The method adds units to units and tens to tens, so a right alignment is what makes each column one place-value group.
The largest total a column can reach is $9+9+1=19$. That forms exactly one new group of ten, so only 1 is ever carried.
$[1, 2, 3, 6, 9, 18]$. The algorithm tests $j$ from 1 upwards and appends each divisor as it is found, so the list is increasing without any sorting step.
Because 1 divides every number, so 1 is a common divisor of any pair. The gcd is therefore at least 1.
It reports the rightmost entry of the common-divisor list. That is enough because both divisor lists were built in increasing order, so the common list increases too and its last entry is the greatest.
For $m \geq n$, $\gcd(m, n) = \gcd(n, m - n)$. The process stops when the second number reaches 0, and then the answer is the first number.
A data structure is a way of organising information so that an algorithm can work more efficiently. The chapter uses lists, kept in ascending order.
Step 3. Euclid reduces $\gcd(m, n)$ to $\gcd(n, m - n)$; Aryabhata reduces it to $\gcd(n, m \bmod n)$. Steps 1 and 2 are identical.
All Class 9 Mathematics chapters
All Mathematics chapters · Every Class 9 subject · The whole NCERT library
Study this chapter properly, free
Everything above is on this page to read. In the Veda app the same chapter becomes spaced-repetition flashcards, timed tests that mark themselves, Veda Bites you can swipe, and games — with your progress tracked topic by topic.
Get Veda free