3 - 5 years
Teachers naturally create opportunities for sequencing, which is a key element of algorithms. Children learn to take turns with others, to tidy up and line up. Sequencing happens during roleplay activities; for example, the events which occur when we go to post a letter at the Post Office.
5 - 7 years
There are many opportunities within the school day for children to understand algorithms and create their own.
The algorithms pupils create can often be implemented using programmable toys or "human robots", and it can be useful for pupils to compare how a square is drawn with a floor turtle and with Logo or ScratchJr.
As the children break down larger tasks into smaller instructions, they also develop their use of decomposition to solve a problem.
7 - 11 years
Increasingly, pupils apply algorithms as rules to their understanding of maths and grammar. They might create algorithms for how to multiply by 10, 100 and 1,000. They increase their understanding of algorithms as sequences of instructions – perhaps writing one for how to play their favourite sport – and they build their understanding of how algorithms and programs are distinct but intrinsically linked.
They gain confidence implementing their algorithms as programs using languages like Scratch. Whilst such graphical programming languages may make a planning stage seem unnecessary, writing down the underlying algorithm will make it much easier for pupils to discuss their algorithms and to get feedback from others before tackling the coding. To write the algorithm down, they might employ a storyboard or flowchart, simple rough jottings or “pseudocode” (a written description of how a program will operate).
Pupils are expected to think algorithmically, using decomposition confidently, to design programs with particular goals. They should be able to debug them. Errors and inconsistencies can quickly be discovered if pupils follow the instructions themselves, before writing these as code. In later years they’ll refine their algorithms further, demonstrate more-complex thinking and employ selection and repetition.