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.

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