Computational thinking is a set of problem-solving skills and techniques that allow us to approach complex problems in a structured way that a computer can help solve. It is the foundation of all programming and algorithm design.
The AQA 8525 specification focuses on two core aspects of computational thinking: decomposition and abstraction. Both are used before any code is written — they are thinking tools, not programming concepts.
Before covering decomposition and abstraction, it is important to understand what an algorithm is, because both techniques are used to help create one.
An algorithm is a sequence of steps that can be followed to complete a task. Key points:
Decomposition means breaking a problem down into a number of smaller sub-problems, so that each sub-problem accomplishes an identifiable task. Each sub-problem might itself be further subdivided until each part is small enough to be solved directly.
The main problem — "build a library system" — can be decomposed into:
Each of these could be decomposed further. For example, "manage member accounts" could break into: create account, verify login credentials, display borrowing history, update personal details.
Abstraction is the process of removing unnecessary detail from a problem, focusing only on what is relevant to the solution.
When solving a problem, there is always more information available than is needed. Abstraction means identifying and keeping only the essential details while ignoring or hiding everything else.
A sat-nav needs to represent roads and routes. The real world has enormous detail. Abstraction removes what is not needed:
| Kept (relevant) | Abstracted away (not needed) |
|---|---|
| Road names and numbers | Colour of road surface |
| Speed limits | Trees and hedges alongside roads |
| Junctions and directions | Individual buildings (unless routing to them) |
| Distances between points | Number of lanes on each road |
A timetabling program needs: teacher names, subjects, rooms, class sizes, available times. It does not need: teachers' shoe sizes, room paint colours, subjects' historical origins, students' home addresses.
These two techniques are used together at the start of any project:
8 AQA-style questions · 20 marks total · AI will mark your answers and give feedback
| Term | Definition |
|---|
Timed exam conditions. No feedback until you submit.