GCSE · Computer Science · Eduqas · Spec C500QS
Abstraction
Imagine a route planner that stores the colour of every train. Daft, right? But why is it daft, and what would make that colour suddenly matter?
Abstraction · Keep or leave out?
Build the model for a route planner
You're building the model for a route planner. For each detail of the real railway, ask: does this purpose need it? Start with the quickest route, then switch the purpose.
Which details does a quickest-route planner need?
Still to sort
Keep (0)
The purpose needs it.
Where the line is: Keep a detail only if the stated purpose needs it. Being real, or interesting, is not enough.
Leave out (0)
The purpose doesn't need it.
Where the line is: A detail can be perfectly true about the railway and still be left out, because this purpose never uses it.
Sort each detail of a real railway for the purpose you're given. Then switch the purpose and sort again.
Predict, then check
What if the planner's model leaves out something it needs?
A route planner's model keeps the stops and which stops are connected, but leaves out the journey times. It is asked for the quickest route between two stops. What happens?
In the Eduqas Computer Science (C500QS) specification, abstraction sits under Systems Analysis. Applying it means identifying the details that are needed, identifying the details that can be ignored, and justifying the choice by reference to the purpose.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Keep the details the problem needs. Leave out the rest.
What you need to know
- Abstraction is one part of a systematic approach to solving problems in computer science.
- Abstraction means keeping only the details the purpose needs, and leaving out (removing or hiding) the ones it doesn't.
- Which details count as relevant depends on the purpose, so one real thing can be abstracted differently for different problems.
Have a goYour friend insists the filling of a sandwich can never be a relevant detail. Can you think of a purpose where it would be?
Yes, for example a lunch-ordering program, where the filling is exactly what the customer is choosing.
Relevance belongs to the purpose, not to the thing. Change the purpose and a detail your friend would bin can become one you must keep.
- It makes a problem simpler to understand and solve, because you can focus on the essential features, not unnecessary detail.
- Leave out a detail the purpose needs, and the model gives incorrect or incomplete results.
- Keep detail you don't need, and the solution ends up more complex than it needs to be.
Have a goA route planner stores the stops and journey times, and also the colour of every train. What does the colour add?
Nothing useful: it just makes the solution more complex than it needs to be.
The tempting answer is 'more detail, more accuracy'. But detail the purpose doesn't use only makes the solution more complex than it needs to be.
- In an algorithm or program, abstraction models selected parts of the real world, representing only the features the program needs.
- Kept features become data, for example variables or data structures. Kept behaviour becomes processing: the steps of the algorithm.
Have a goA quiz program stores each player's score, and has a step that adds 1 when an answer is right. Which is the data and which is the processing?
The score is data. The 'add 1' step is processing.
The score is a kept feature, so it sits in a variable as data. 'Add 1 when right' is behaviour, so it is a step of the algorithm: processing.
- To apply it, name the needed details, name the ignorable ones, and justify your choice by the purpose.
The big picture
Abstraction means keeping the details a problem's purpose needs and leaving out the rest. Which details count depends on the purpose. In a program, the kept features become data and the kept behaviour becomes processing.
Key points
Worked example
Problem
A school wants a program that tells each pupil which locker is theirs. A real locker has: a locker number, the name of the pupil it belongs to, the colour of its door and a dent in the door. Decide what the program keeps, what it ignores, and why.
⚠ Watch out
Thinking abstraction means throwing away as much as possible. It means keeping exactly what the purpose needs. Bin a needed detail and the results go wrong. Hoard details you don't need and the solution gets more complex than it has to be.
Memory hook
Purpose picks the details: ask 'what is this for?' before you keep or bin anything.
Check yourself
A school wants a program that tells pupils which room their next lesson is in. Pick one detail the program needs and one it can ignore, and say why for each.
Flashcards
(12)What is abstraction?
Where does abstraction fit when solving problems?
What decides which details are relevant?
Can one real-world thing be abstracted in more than one way?
Why does abstraction make a problem simpler to solve?
What is abstraction used for in an algorithm or program?
In a program, how are the chosen real-world features represented?
In a program, how is the relevant real-world behaviour represented?
What three jobs make up applying abstraction to a problem?
What goes wrong if you leave out a detail the purpose needs?
What goes wrong if you keep unnecessary detail?
In a route planner, what does the model keep?
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 Eduqas GCSE Computer Science topics
- Analyse a set of requirements
- Authentication management routines
- Comparing approaches to requirements
- Consistent programming style
- Creating and extending Python 3 functions/methods
- Creating and extending Python 3 libraries
- Decomposition
- Designing a testing strategy
- Explaining test outcomes
- File handling: open a file
- File handling: read into a variable
- File handling: read into an array
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 16 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.