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.

Computer science · Decomposition

Zoom into a problem until you can solve it

Level 1 of 4: The whole quiz game

Predict first

The whole quiz game is too big to solve in one go. What's the first move?

  • Frames are not drawn to scale.
  1. Your job: write a program for a quiz game. It asks questions, checks the answers and keeps a score. Try to solve all of that in one go and you'll freeze. It's too big to solve directly.

    • This is the whole original problem.
    • At the end, the solutions to the parts get combined into a solution to this.

Computer science · A systematic approach

Where does decomposition fit in?

the order the stages happen in, from first to last

1 · happens first4 · happens last
  1. Combine the solutions into a solution to the whole problem

  2. Test each sub-problem's solution separately

  3. Decompose the problem into sub-problems

  4. Solve each sub-problem separately

Computer science · Decomposition

Which of these would you say?

A group is about to decompose a big program and four people disagree about how decomposition works.

Which is closest to what you think right now?
How sure are you?

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?

Computer science · Explain it

Write it, then mark it

Explain how decomposition helps a programmer who is working alone, and a team of programmers who are working together. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1Decomposition breaks a problem into smaller, more manageable sub-problems, and any sub-problem that is still too complex is decomposed again.
2Each sub-problem can be understood, solved and tested separately, so an error is traced to the part that contains it.
3The solutions to the sub-problems are combined to solve the whole original problem.
4It helps alone (one part at a time) and in a team (parts shared out and worked on at the same time).
5A team must agree what each part receives and produces so that the parts can be combined.

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?
Breaking a problem down into smaller, more manageable sub-problems.
A sub-problem is still too complex. What do you do?
Decompose it again, and repeat until each sub-problem is small enough to be understood and solved directly.
Which question tells you whether to keep splitting?
"Can I solve this part directly yet?" If not, split it again.
What can each sub-problem be, separately from the rest?
Understood, solved and tested, each one on its own.
Why test each sub-problem's solution separately?
So an error can be traced to the particular part that contains it.
What happens to the solutions to the sub-problems at the end?
They are combined to give a solution to the whole original problem.
Decomposition is one part of what bigger thing?
A systematic approach to solving problems.
How does decomposition help someone working alone?
The problem is less overwhelming, because they focus on one smaller part at a time and complete and check each part in turn.
How does decomposition help a team?
Different sub-problems are allocated to different people, so parts of the problem are worked on at the same time.
What must a team agree about their sub-problems?
How the parts connect: what each part receives and produces, so the separate solutions can be combined.

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 posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

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.