Algorithms do things. Tada.
Here is another algorithm - this time a little more complex:
Algorithm Steps | Example |
---|---|
Think of any two numbers from $$1 to $$9. | $$3 and $$5 |
Make two $$2-digit numbers by putting them in either order. | $$53 and $$35 |
Subtract the smaller number from the larger number. | $$53โ35=18 |
Divide the result by $$9. | $$18รทโ9=2 |
Finally, add the smaller starting number. | $$2+3=5 |
In the example, we chose the numbers $$3 and $$5 to start with. In the last step of the algorithm, we added the smaller of these numbers, $$3, and got a result which was the larger number, $$5.
Does this always happen? Try it yourself with two different numbers!
We are going to add these two numbers together, using the addition algorithm below:
$$37+46
1. | Add the units. |
2. | Is the result at least $$10?
|
3. | Add the tens. |
4. | Is the result at least $$100?
|
5. | Write the final answer by adding the hundreds, tens and units. |
Which two numbers will be added in step 1?
$$7$$and$$6
$$3$$and$$4
Complete step 1: Add the units.
What do we need to do at step 2?
GO TO step 3.
First regroup into tens and units, then GO TO step 3.
Regroup $$13 into tens and units:
$$13=+
Now complete step 3: Add the tens.
What do we need to do at step 4?
GO TO step 5.
First regroup into hundreds and tens, then GO TO step 5.
Complete step 5: Write the final answer by adding the hundreds, tens and units.
We are going to add these two numbers together, using the addition algorithm below:
$$89+65
1. | Add the units. |
2. | Is the result at least $$10?
|
3. | Add the tens. |
4. | Is the result at least $$100?
|
5. | Write the final answer by adding the hundreds, tens and units. |
Complete step 1: Add the units.
What do we need to do at step 2?
GO TO step 3.
First regroup into tens and units, then GO TO step 3.
Regroup $$14 into tens and units:
$$14=+
Now complete step 3: Add the tens.
What do we need to do at step 4?
GO TO step 5.
First regroup into hundreds and tens, then GO TO step 5.
Regroup $$150 into hundreds and tens:
$$150=+
Now complete step 5: Write the final answer by adding the hundreds, tens and units.
We are going to subtract these two numbers, using the subtraction algorithm below:
$$91โ26
1. | Is the units digit of the first number less than the units digit of the second number?
|
2. | Subtract the units of the second number from the units of the first number. |
3. | Subtract the tens of the second number from the remaining tens of the first number. |
4. | Write the final answer by adding the results of steps 2 and 3. |
Fill in the blanks below:
The units digit of the first number is $$.
The units digit of the second number is $$.
What do we need to do at step 1?
GO TO step 2.
Regroup the tens part of $$91, then GO TO step 2.
Fill in the blanks below:
We can regroup the tens part of $$91 as $$90=+10, in order to give $$10 to the units part, which will become $$1+10=.
Complete step 2: Subtract the units of the second number from the units of the first number.
Complete step 3: Subtract the tens of the second number from the remaining tens of the first number.
Complete step 4: Write the final answer by adding the results of steps 2 and 3.