KS3 · Computer Science
Abstraction in computational thinking
You could describe your best friend for an hour. A birthday-reminder app needs almost none of it. Ignoring details on purpose has a name: abstraction.
Computer Science · Abstraction
Same Sam, two different jobs
Pick a detail, then decide: does this job need it, or can it go?
The app's only job is to remind you when it's Sam's birthday. What does it need?
Still to sort
Keep it (0)
The job can't be done without this detail.
Where the line is: Keep a detail only if this job fails without it. 'It's true about Sam' isn't a reason on its own.
Remove or hide it (0)
The job works just as well without this detail.
Where the line is: Removing a detail doesn't mean it's false or worthless. It just doesn't help this job.
Sort Sam's details into keep or remove. Then switch the job and sort the very same details again. Watch what flips.
Computer Science · Structure
A train map that's 'wrong' on purpose
A made-up city's train map. Every gap between stops is drawn the same length, whatever the real distance. Tap a stop to see what the map keeps and what it leaves out.
Tap any part of the diagram to see what it does.
Computer Science · Algorithms
Trace table — dry run the code
A made-up model of a game character. The columns x, score and lives are its STATE. Each 'when' line is a BEHAVIOUR rule. Step through and watch the rules change the state.
Ready when you are — step through one line at a time.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Keep what the job needs. Hide the rest.
What you need to know
- Abstraction means removing or hiding the details a problem doesn't need, and keeping the ones that matter.
- The payoff: the problem becomes simpler to understand and simpler to solve.
- What counts as important depends on the purpose. A must-have detail for one job can be useless for another.
Have a goYour friend is building an app that tells you when your phone needs charging. They're very proud it stores your phone case's colour. Keep that detail, or remove it?
Remove it.
The case colour has nothing to do with when the battery runs low. A detail being true about your phone doesn't make it needed for this job.
- So one real-world thing can be abstracted in different ways, one for each purpose.
- A transport map keeps the stops, the lines and how they connect, and drops exact distances, buildings and streets.
Have a goA tourist asks the train map: 'How far is it from one stop to the next?' Can the map answer?
No.
The map left out exact distances on purpose. Brilliant for seeing how stops connect, no use for measuring how far apart they are.
- Computers use abstractions too: a computational abstraction is a model of a real problem or system that a computer can work with.
- Its state is the data describing it at one moment, like a game character's position and score.
- Its behaviour is the rules that describe how that state changes.
Have a goA model stores battery = 80. Its rule: each hour of use, battery = battery - 10. After 3 hours of use, what is the state?
battery = 50
The behaviour rule fired three times and each time changed the stored value. The rule stayed the same; only the state changed.
- Evaluating a model means checking the balance: too much detail makes it complicated, too little makes it unhelpful or wrong.
- In computational thinking, abstraction works alongside decomposition (breaking a problem into smaller parts) and designing algorithms.
The big picture
Abstraction means removing or hiding the details a problem doesn't need and keeping the ones that matter, so the problem gets simpler to understand and to solve. Which details matter depends on the purpose, so one real thing can be abstracted in different ways. A computer model records its state (its data at a moment) and its behaviour (the rules that change that data), and a good one keeps enough detail to be useful without becoming complicated.
Key points
Worked example
Problem
Design an abstraction of a pet dog, Biscuit, for a 'walk reminder' app that tells the owner when the dog is due its next walk. Say what the model keeps and leaves out, then name its state and one piece of behaviour.
⚠ Watch out
Thinking abstraction means removing as much as possible. Take away a detail the purpose needs, like the date of birth from a birthday reminder, and the model stops working. Abstraction hides only the details the problem doesn't need and keeps the important ones.
Memory hook
Keep what the job needs, hide the rest. A train map is 'wrong' about distance on purpose, and that's exactly why it's useful.
Check yourself
A school wants a computer model of each classroom so that rooms can be booked for lessons. Name two details the model should keep and two it could leave out, and say why for each.
Flashcards
(14)What is abstraction?
What decides which details are important in an abstraction?
Can one real-world thing have more than one good abstraction?
Is a detail worth keeping just because it's true?
What does a transport map keep?
What does a transport map leave out, and why?
What is a computational abstraction?
What is the state of a model?
What is the behaviour of a model?
What are you judging when you evaluate an abstraction?
Too much detail or too little: what goes wrong with each?
What is decomposition?
Abstraction or decomposition: which one chooses the details to keep?
Name three techniques that are part of computational thinking.
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 KS3 Computer Science topics
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.