Problem Solving · Computational Thinking
up to +100 XP
Stop 1.1 · Problem Solving · 3 min

Computational Thinking

Master the fundamentals of computational problem-solving

Learning objectives:
  • Define computational thinking and know when to use it (1.1.1–1.1.3)
  • Know the four components and their benefits and drawbacks (1.1.4–1.1.5)
  • Use decomposition, pattern recognition and abstraction (1.1.6–1.1.16)
  • Judge how the components work together (1.1.17)

What computational thinking is

Computational thinking is a way of looking at a problem so that a solution can be described clearly and, where it helps, carried out by a computer. You break the problem down, look for patterns, keep only what matters and then design the steps.

Use it when a problem is complex, has many parts, repeats, or needs a solution that could be automated in code. Small one-off problems with an obvious answer rarely need it.

BenefitsDrawbacks
Makes big problems manageableTakes time to do properly
Gives solutions that can be reused and automatedCan over-complicate simple problems
Helps teams split work and communicateA wrong assumption early on carries through

The four components

Decomposition

The tasks of decomposition are to:

  1. identify the main features of the problem
  2. characterise (describe) each feature
  3. break the problem down into smaller, more manageable parts
  4. break the solution down into smaller, more manageable parts.

Benefit: each part can be understood, built and tested on its own, often by different people. Drawback: if the parts are split badly, they may not fit back together.

Ways to represent decomposition

Pattern recognition

Pattern recognition means:

Benefit: you can reuse solutions that already work. Drawback: a pattern that only looks similar can lead to wrong assumptions.

Abstraction

The tasks of abstraction are to identify the information that is needed, filter out unnecessary details and hide the details of internal workings.

When you abstract a problem, ask:

Example: for a cinema ticket app you need the film, time, number of seats and ticket type. The colour of the cinema carpet is irrelevant, so you filter it out.

Benefit: the problem becomes simpler to solve. Drawback: you might filter out a detail that turns out to matter.

How the components work together

Decomposition gives you the parts. Pattern recognition shows which parts are alike, so they can share a solution. Abstraction strips each part back to what matters. Algorithmic design turns each part into clear steps. In the exam you may need to judge which component suits a scenario best, and why.

Quick check · 12 questions · up to 100 XP

Check what stuck.

+10 XP each
Question 1

Question 1 of 12

What are the four components of computational thinking?

Question 2

Question 2 of 12

Which component breaks a problem into smaller, more manageable parts?

Question 3

Question 3 of 12

Which is a task of abstraction?

Question 4

Question 4 of 12

A developer notices a new booking system is similar to one built last year and reuses its design. Which component is this?

Question 5

Question 5 of 12

Which is a drawback of pattern recognition?

Question 6

Question 6 of 12

Which method of representing decomposition shows how data moves between parts of a system?

Question 7

Question 7 of 12

When using abstraction, which question helps you find what stays the same each time?

Question 8

Question 8 of 12

When is computational thinking LEAST likely to be needed?

Question 9

Question 9 of 12

Which is a task of decomposition?

Question 10

Question 10 of 12

Why might abstraction cause a problem?

Question 11

Question 11 of 12 · Match the pairs

Match each component of computational thinking to what it does.

Decomposition
Pattern recognition
Abstraction
Algorithmic design
Question 12

Question 12 of 12 · Fill in the blanks

The three tasks of abstraction are to identify the information that is , filter out unnecessary and hide the details of internal .