Computational thinking

Computational thinking is a way of solving problems so that a person or a computer can carry out the solution. It has four main parts.

Practise this lesson free (6 questions)

More tools

The four parts

Decomposition: breaking a big problem into smaller problems that are easier to solve.
Pattern recognition: spotting things that are the same or similar, so you can reuse a solution.
Abstraction: removing details that do not matter, to focus on what does.
Algorithms: writing step-by-step instructions to solve the problem.

Abstraction in real life

The London Underground map is a famous abstraction. It leaves out real distances, streets and bends.
It keeps only what a passenger needs: the stations, the lines and where to change.
A football video game does not model every blade of grass, but it keeps the ball, the players and the rules.

Decomposition example

Problem: make a quiz game.
Decompose it: ask a question, check the answer, keep the score, show the final score.
Each small part can now be solved, and even shared between people in a team.
Worked example

You are planning a school trip. Show decomposition and abstraction.

  1. Decomposition: split the trip into transport, cost, permission letters, timetable and lunch.
  2. Abstraction: for the coach booking, keep the number of people and the date. The colour of the coach does not matter.

Answer: Decomposition splits the trip into smaller tasks; abstraction keeps only the details each task needs.

Key idea

Decomposition breaks a problem down, pattern recognition spots similarities, abstraction removes unnecessary detail, and an algorithm gives step-by-step instructions.

Key words
Computational thinking
Solving problems in a way a computer could carry out, using decomposition, pattern recognition, abstraction and algorithms.
Decomposition
Breaking a big problem down into smaller problems that are easier to solve.
Pattern recognition
Spotting things that are the same or similar in different problems, so one solution can be reused.
Abstraction
Removing unnecessary detail from a problem so you can focus on what matters. A map of the Underground is an abstraction.
AND
A Boolean operator that gives True (1) only when both inputs are True.
Algorithm
A precise set of step-by-step instructions to solve a problem or complete a task.

All KS3 Computing key terms and definitions →

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Planning a school trip by splitting it into transport, food and activities is an example of...

    1. abstraction
    2. pattern recognition
    3. decomposition
    4. debugging
    Show the answer

    Answer: decomposition

    Splitting a problem into parts is decomposition.

  2. A London Underground map ignores real distances and shows only lines and stations. Which skill is this?

    1. Abstraction
    2. Decomposition
    3. Iteration
    4. Selection
    Show the answer

    Answer: Abstraction

    Leaving out real distances keeps only what travellers need.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons