Decomposing a problem into a hierarchy chart
A diagram that splits one main problem into smaller sub-problems in boxes, level by level, until each box is a small task that can be solved on its own.
Understanding Decomposing a problem into a hierarchy chart in Years 9–10 Creating Digital Solutions
What it does: The sub-problem 'Handle payments' is still fairly big, so it is split again into small tasks. Each of these can be solved on its own, so the splitting can stop. Once a box is a small, self-contained task, it can be coded as its own function. The box name becomes the function name. The top-level box holds the whole problem. Sub-problems then branch out in boxes below it. A sub-problem is a smaller part of the main problem. Repeating the main problem does not break it down. Each level breaks the boxes above it into smaller pieces, so the chart grows downwards in levels.
Common mistakes: A sub-problem must be a smaller part of the main problem. This box just repeats the main problem, so it does not split anything. It should be a part such as 'Choose the music'. Each sub-problem box must be a different part of the main problem. This box repeats 'Make the questions' from line 2, so the marking part is missing. It should be 'Sub: Mark the answers'.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 6–132) and word search (Modules 6–132).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
hierarchy chartFill in the Blanks
Spot the Error
Student with a class code? Join your class →