KS3 · Computer Science

Decomposition: splitting problems up

"Plan a day at the Eiffel Tower." Where do you start? Try "work out how to get there". Easier, right? You just made the problem smaller. That's decomposition.

Computer Science · Structure

A day at the Eiffel Tower, split up

Tap each box, top to bottom. What's the main problem? What's a subproblem? Why is there a second layer?

Tap any part of the diagram to see what it does.

Computer Science · Decomposition

Your turn to split: a game's player actions

A game's player actions are one big problem, already split into three subproblems. Pick an action, then pick the subproblem it belongs under.

Still to sort

Move (0)

Getting the player around

Item (0)

Things the player can carry

Spells (0)

Magic

8 of 8 still to sort.

Computer Science · Decomposition

Lunch order app: parts, then order

These are the three subproblems of a lunch order app. When someone actually places an order, which has to happen first?

1 · Happens first3 · Happens last
  1. Process the input (make the decision)

  2. Give the price back to the user

  3. Get the user's input

Watch out: Don't read order off a structure diagram. Its lines mean 'is part of'. The order here comes from the app itself.

Computer Science · Decomposition

Your turn: plan a homework app

Understand the problem before you start splitting it. Ask: What does the solution need to do? Why does the problem need solving? Who will be using it?

A homework app needs planning. First answer the Three W's for it. Then write down three different subproblems you would decompose it into. [6 marks]

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

Computer Science · Decomposition

So what does decomposition actually do?

Four classmates are arguing about decomposition on the way out of the lesson.

Which one is closest to what you think? Pick one, say how sure you are, then check.
How sure are you?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

One overwhelming job, turned into smaller problems you can actually solve.

What you need to know

  • Computational thinking is a structured way of solving problems. Decomposition is one of its techniques, alongside abstraction and algorithmic thinking.
  • Decomposition breaks a big problem into smaller, more manageable subproblems, like doing a jigsaw piece by piece.
  • Have a goYour mate groans: "Organising my birthday party is one massive job, so I'll just do the whole thing tonight." What would decomposition tell them to do instead?

    Split it into smaller subproblems (say guests, food, place) and tackle them one at a time.

    Doing it all at once is exactly what makes it overwhelming. Smaller subproblems are more manageable, so you solve the big job piece by piece.

  • A subproblem is simply a smaller part of the main problem.
  • Still too big? Decompose that subproblem again. Repeat as many times as needed, until every piece is manageable.
  • Have a goYou split "run a school cake sale" into three subproblems, but "baking" still feels huge. What's your next move?

    Decompose "baking" again into smaller subproblems.

    There's no one-split limit. A subproblem can be broken down again, as many times as it takes to make it manageable.

  • A structure diagram shows the split: the main problem at the top, branches leading down to its subproblems.
  • Those lines mean "is part of". They don't tell you which part happens first.
  • Have a goSam looks at a structure diagram and says, "The box on the far left is the one you do first." Agree or disagree?

    Disagree. The diagram shows parts, not order.

    It's tempting to read it like a list, left to right. But a line in a structure diagram means "is part of", so it says nothing about which part runs first.

  • Understand the problem before using computational thinking. The Three W's ask: what must the solution do, why solve it, who'll use it?
  • After decomposition, abstraction focuses on each subproblem's important details, and algorithmic thinking creates the step-by-step instructions.
  • No computer needed: trips, game controls and apps can all be decomposed.

The big picture

Decomposition breaks a big problem into smaller, more manageable subproblems, and you can split a subproblem again as many times as you need. A structure diagram shows the result: the main problem at the top, branches down to its subproblems. The lines mean 'is part of', not 'do this first'. Decomposition is one computational thinking technique, alongside abstraction and algorithmic thinking, and it works with or without a computer.

Key points

1Computational thinking is a structured approach to solving problems; decomposition sits alongside abstraction and algorithmic thinking.
2A subproblem is part of the main problem, and it can have subproblems of its own.
3A structure diagram gives a clear overview of the main problem and every subproblem that needs solving.
4Decomposition splits; abstraction keeps the important details; algorithmic thinking writes the step-by-step instructions.
5Decomposition works on trips, game actions and programming projects, with or without digital technology.

Worked example

Problem

Decompose a lunch order app into subproblems and describe its structure diagram. Then say what you have done, and what you haven't done yet.

⚠ Watch out

Treating a structure diagram like a flowchart. Its lines show that a box is part of the box above, not that it happens next. And decomposing a problem doesn't solve it or write the algorithm: it just gives you smaller problems to solve.

🧠

Memory hook

Think jigsaw: nobody does it in one go. Big problem on top, smaller pieces underneath, and if a piece is still too big, split it again.

✓

Check yourself

Close the diagram and rebuild it in your head: what sits at the top of the Eiffel Tower trip, what's on the layer underneath, and why did each of those get a second layer?

Flashcards

(14)
What is decomposition?
Breaking a problem down into smaller, more manageable subproblems, like a jigsaw done piece by piece.
What is a subproblem?
A smaller part of the main problem. It can be decomposed into subproblems of its own.
How many times can you decompose a subproblem?
As many times as needed, until the problems are manageable and easy to solve.
What does a structure diagram show?
A decomposed problem: the main problem at the top, branches down to the subproblems. A clear overview of what needs solving.
What does a line in a structure diagram mean?
The lower box is a smaller part of the box above. It doesn't show which happens first.
Name the three computational thinking techniques in this lesson.
Decomposition, abstraction and algorithmic thinking.
What does abstraction do?
Focuses on the important details of each smaller subproblem and ignores the irrelevant details.
What does algorithmic thinking do?
Creates a series of logical, step-by-step instructions (an algorithm) to solve the problem.
What are the Three W's?
What the solution needs to do, why the problem needs to be solved, and who will be using the solution.
Trip to the Eiffel Tower: first layer?
Transport, tickets and food.
Trip to the Eiffel Tower: second layer?
Transport: UK to Paris, then Paris to the Eiffel Tower. Tickets: the elevator and a guided tour. Food: a packed lunch or the restaurant in the evening.
How do a game's player actions decompose?
Move (forward, turn left, turn right), item (pick up, use, drop) and spells (cast, learn).
How can a homework app be decomposed?
Adding homework, viewing the list of homework tasks, and ticking homework off once done.
Does decomposition need digital technology?
No. Computational thinking can be applied in all sorts of parts of life, even without any digital technology.

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 KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

How this lesson was checked. This KS3 Computer Sciencelesson 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 27 October 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.

Helpful guides for parents and students