Decomposition

What is decomposition?

In computing, decomposition is the process of breaking down a task into smaller, more-manageable parts. It has many advantages. It helps us manage large projects and makes the process of solving a complex problem less daunting and much easier to take on.

With decomposition, a task can be tackled by several people working together as a team, each member contributing their own insights and skills to particular aspects of the project.

As a simple example, making breakfast can be decomposed into a number of smaller tasks, as below. Two people could make this breakfast at the same time, one making tea and one toast.

A branching diagram showing how a breakfast of tea and toast is prepared.

Two people could make this breakfast at the same time: one could make the tea and one the toast

An illustration of a plant can be decomposed into its constituent parts, and each of those can be further decomposed for extra detail:

A labelled diagram of a flowering plant with progressive close-ups of parts, to add detail.

A labelled diagram of a flowering plant. We find out more as we decompose.

Why is decomposition important?

Decomposing problems into their smaller parts is not unique to computing: it’s quite standard in engineering, in design and in project management.

Software development is a complex process, and so the ability to break down a large project into its component parts is essential: think of all the different elements that need to be combined to produce a program like PowerPoint.

The same principle is true of computer hardware: smartphones and laptop computers are each composed of many components, produced independently by separate manufacturers before being assembled into the finished product.

A photo of the parts of a tablet computer laid out.

A tablet can be broken down (decomposed) into smaller components. (With thanks to iFixit.com.)

What does decomposition look like in the Primary curriculum?

Putting on a school play or a cake sale, creating a news report, tackling a maths problem, making a sandwich: any task or project will need to be decomposed into smaller, more-manageable parts. Decomposition is everywhere in Primary practice.

Pupils are always being asked to find out more; whenever they’re labelling drawings, adding detail to concept maps, creating instructions, sketching lifecycles or marking out timelines, they’re breaking down something and thinking about detail, developing their decomposition skills.

The concept map below is a decomposition of children’s knowledge of the ancient Egyptians.

A concept map of facts about the ancient Egyptians,  with further detail on pharaohs.

In a concept map, pupils can add detail to their knowledge and understanding of the ancient Egyptians.

Pupils’ decompositions might include just the things they currently know about. They should learn to check that they haven’t neglected aspects of a topic. They can consider further decomposing each aspect into sub-parts.

A computer game might be decomposed into plot, characters and setting. Next, the characters could be decomposed into actions and appearance, and the setting into background, obstacles and scoring objects. In developing a robotic toy, pupils will consider the hardware components – both individually and as a system – and the algorithms and code required. In computing, technology = hardware + algorithms + code.

3-5 years

Early Years practitioners often create opportunities for pupils to explore detail.

When pupils label simple diagrams and sequence familiar processes, they start to see that breaking things down into their parts helps us learn about them. In roleplay, pupils could think about how to set up a shop – they’ll need merchandise, price tags, a till, money for change, etc. Constructing a model plane, they make the wings, add these to the body, add the wheels: the children think about the parts and then assemble them.

Model these skills and take them a step further by showing how to evaluate that all the necessary things are present.

A cartoon of a baby with different parts of the body labelled.

Simple labelling in Early Years.