KS3 · Computer Science
Abstraction in computational thinking
Describe your best friend and you could go on for ages. A birthday-reminder app needs almost none of it. Choosing what to ignore has a name: abstraction.
Abstraction · Keep or leave out?
Same friend, two different models
Meet Sam, a made-up friend with lots of details. Pick a purpose, then sort every detail: does this model need it, or can it be left out? When you've finished, switch purpose and sort the SAME details again.
The app has one job: remind you on the right day, and tell you whose birthday it is.
Still to sort
Keep (0)
This purpose needs it.
Where the line is: Ask: would the model do its job worse without this detail? If yes, keep it.
Leave out (0)
This purpose doesn't need it.
Where the line is: Leaving a detail out is a deliberate choice, not a mistake — it keeps the model simple.
Once you've done both sorts, compare them. Same seven details, but the Keep pile changed completely. There's no single right model of Sam, only the right model for a purpose.
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 the details the problem needs. Hide the rest.
What you need to know
- Abstraction keeps the important details and hides the rest.
- Which details are important depends on what the model is for.
- Computer models have state (data) and behaviour (rules), and a good one has just the right amount of detail.
The big picture
Abstraction means removing or hiding the details a problem doesn't need and keeping the ones that matter, so the problem becomes simpler to understand and solve. Which details matter depends on the purpose. A computer model of something records its state (its data at a moment) and its behaviour (the rules that change that data), and a good abstraction 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 keeps the important details and hides only the ones the problem doesn't need.
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
(13)What is abstraction?
What decides which details are important in an abstraction?
Can one real-world thing have more than one good abstraction?
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 1 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.