Breaking a problem down

About this lesson: Breaking a problem down

In short

Decomposition means breaking a big problem into smaller parts that are easier to design, build and test. An adventure game is far too big to write in one go. Split it up.

Breaking a problem down

What you'll explore

Decomposition: Big problem, small parts
Decomposition means breaking a big problem into smaller parts that are easier to design, build and test.
Jobs: What does each part do?
For each part, decide its job: what goes in (input) and what comes out (output). Then different people can build different parts at the same time.
Connections: How the parts fit together
The output of one part becomes the input of another. Knowing these links means the parts will fit when they are joined.
Check yourself: Plan a party
Leo decomposes ‘plan a birthday party’ into: food, games, invitations, decorations.

Also in this lesson

  • Common mix-ups
  • Benefits
  • Decompose it

Words to know

decomposition
Breaking a problem into smaller parts.
sub-problem
A smaller part of a bigger problem.
decomposition diagram
A tree showing a problem and its parts.
input
Data a part receives.
output
Data a part produces.

Sources

  • BBC Bitesize KS3 Computing: Decomposition

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 4 short steps and a 6-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 11 November 2026.

Decisions in code →

All lessons in Term 3 · Computing · Age 12