GCSE · Computer Science · Eduqas · Spec C500QS
Decomposition
Some problems are so big you don't know where to start. The trick isn't to be cleverer. It's to make the problem smaller, and then smaller again.
Predict, then check
Two teammates, two parts, one problem.
Priya builds the 'check the answer' part, which hands back the words "right" or "wrong". Marcus builds the 'keep the score' part, which expects to be handed a number to add. They never discussed it. Each part passes its own tests. What happens when the parts are joined?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Too big to solve? Break it into parts you can solve.
What you need to know
- Decomposition means breaking a problem down into smaller, more manageable sub-problems.
- It is one part of a systematic approach to solving problems.
- If a sub-problem is still too complex, decompose it again. Repeat until each part is small enough to solve directly.
Have a goA friend splits their homework-planner project into three parts and says, "Done decomposing!" But one part is still 'build the whole timetable screen'. What do you tell them?
Split that part again, and keep going until every part can be solved directly.
One split isn't the finish line. A part that is still too complex gets decomposed again.
- Each sub-problem can be understood on its own, separately from the rest of the problem.
- Each sub-problem can be solved separately from the others.
- Each solution can be tested separately, so an error is traced to the part that contains it.
Have a goA program has four sub-problems and you tested each one's solution separately. Only the test for part 3 failed. Which part do you go and look in?
Part 3.
Separate tests let you trace an error to the particular part that contains it, instead of searching all four.
- The solutions to the sub-problems are then combined to give a solution to the whole original problem.
- Working alone, you can focus on one smaller part at a time, so the problem feels less overwhelming.
- Working in a team, different sub-problems can go to different people, so parts are worked on at the same time.
Have a goA classmate insists a team of four must do their four sub-problems one after another, "to be fair". Are they right?
No. Each person can take a different sub-problem and they can all work at the same time.
Allocating different sub-problems to different people is what lets parts be worked on at the same time.
- Teams must agree what each part receives and produces, so the separate solutions can be combined.
The big picture
Decomposition means breaking a problem down into smaller, more manageable sub-problems. If a sub-problem is still too complex, you decompose it again, until every part is small enough to understand and solve directly. Each part can be solved and tested on its own, then the solutions are combined into a solution to the whole problem. It helps someone working alone and a team working together, as long as the team agrees how their parts connect.
Key points
Worked example
Problem
Plan a program that asks for three test marks, then shows their average and says "pass" if the average is at least 50. Decompose it, then show it working for the marks 40, 55 and 70.
⚠ Watch out
Thinking decomposition is one split, and that you can only test once everything is put back together. Really, a part that is still too complex gets split again, and every part's solution can be tested on its own before the solutions are combined.
Memory hook
Split it. Split it again. Solve each part alone, test each part alone, then stick the solutions together.
Check yourself
Pick a big problem, like planning a party. Split it, split one part again, then say why the smallest parts can be solved and tested alone.
Flashcards
(10)What is decomposition?
A sub-problem is still too complex. What do you do?
Which question tells you whether to keep splitting?
What can each sub-problem be, separately from the rest?
Why test each sub-problem's solution separately?
What happens to the solutions to the sub-problems at the end?
Decomposition is one part of what bigger thing?
How does decomposition help someone working alone?
How does decomposition help a team?
What must a team agree about their sub-problems?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Eduqas GCSE Computer Science topics
- Analyse a set of requirements
- Authentication management routines
- Comparing approaches to requirements
- Consistent programming style
- Creating and extending Python 3 functions/methods
- Creating and extending Python 3 libraries
- Designing a testing strategy
- Explaining test outcomes
- File handling: open a file
- File handling: read into a variable
- File handling: read into an array
- File handling: write to a file
How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.