topic badge

12.03 Partitioning and ordering


Are you ready?

Do you know how to use a function machine?  It's like an algorithm with just one step. 

Think about the following function machine:

  1. Complete this table of inputs and outputs:

    Input Output
    $6$6 $\editable{}$
    $7$7 $\editable{}$
    $8$8 $\editable{}$


To explore what an algorithm is, we'll use an example of getting dressed, then see how we can use an algorithm to sort some coins into order by value. 


Write $327$327 in expanded form by following these steps:

  1. First write down the hundreds part.

  2. Next write down the tens part.

  3. Now write down the units (ones) part.

  4. Now write the number in expanded form by adding these three numbers together.





An algorithm is a set of steps that tells us what we need to do, and when. It can be used in lots of ways, but we have seen how to use it to sort numbers into different orders. 




Define a simple class of problems and solve them using an effective algorithm that involves a short sequence of steps and decisions

What is Mathspace

About Mathspace