Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

1.1 (1 of 4): What is computational thinking?

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

40 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

A trip for seven friends

You plan a trip to a football match for seven friends. There is a lot to do.

You need tickets. You need a bus. You need to know who pays. Everybody wants a different seat.

Where do you start? Programmers have a way to think about a big problem like this. Computational thinking is the name for it.

Key words

WordWhat it meansExample
Computational thinkingA way to solve a problem so that a computer can help.plan the trip in clear parts
DecompositionBreak a big problem into small parts.tickets, bus, money
Pattern recognitionFind things that repeat or look alike.every friend needs a ticket
AbstractionKeep the details that matter. Leave out the rest.a bus map shows roads, not trees
AlgorithmA list of clear steps that solves a problem.a recipe
ProblemSomething you want to do or fix.get seven friends to a match

The cells students fill in are left blank in this preview.

Match the part to its job

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Clear steps make a big problem simple

Computational thinking is a way to solve a problem in clear steps. A computer, or a person, can follow the steps.

Its purpose is to make a big, confusing problem easy to understand. You can then write a program to solve it. It also lets a team share the work, and you find mistakes before you write any code.

It has four parts. They are listed in the next picture.

The four parts together (one common order)

A flowchart from a big problem, through decomposition (break it into parts), pattern recognition (find what repeats), abstraction (keep what matters) and algorithmic design (write the steps), in one common order, to a solution a computer can follow.A flowchart from a big problem, through decomposition (break it into parts), pattern recognition (find what repeats), abstraction (keep what matters) and algorithmic design (write the steps), in one common order, to a solution a computer can follow.

The four parts on the football trip

PartThe question it asksOn the trip
DecompositionWhat are the smaller jobs?Tickets, bus, money, food
Pattern recognitionWhat repeats? Have I done this before?Each friend needs a ticket and a seat. I booked a bus for a school trip last year.
AbstractionWhat do I need to know? What can I ignore?Need: names, seats, prices. Ignore: the colour of the bus.
Algorithmic designWhat are the steps, in order?1 Count the friends. 2 Book tickets. 3 Book the bus. 4 Collect money.

The cells students fill in are left blank in this preview.

Quick check: which part is it?

Have a go

Quick check: which part is it?

4 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Use it on big problems

Use computational thinking when a problem is big, new or has many parts. Use it when more than one person works on it. Use it when you plan to write a program to solve the problem.

You do not need all four parts for a tiny job. Adding 2 and 3 needs no plan.

Is it worth it?

Have a go

Is it worth it?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

A common mistake

Warning

Many people think computational thinking always saves time. It costs time before you write any code, and you can plan for too long. It pays back only on a big problem. Some problems need a human choice, not a list of steps.

Watch: the four parts on the trip

Press Play on the short film below. It works through the football trip one part at a time, then shows the two common mistakes. Watch what each part does with the trip.

Film: what is computational thinking?

What is computational thinking?

Every scene, as text

  1. Computational thinking is a way to solve a problem in clear steps, so that a computer, or a person, can follow them. The lesson's big problem: get seven friends to a football match. Clear steps turn it into a solution a computer can follow.
  2. Decomposition: break a big problem into small parts. The trip breaks into four smaller jobs: tickets, bus, money and food.
  3. Pattern recognition: find things that repeat or look alike. Each of the seven friends needs a ticket and a seat. The bus looks like an old problem: a bus was booked for a school trip last year, so it has been solved before.
  4. Abstraction: keep the details that matter and leave out the rest. Need: names, seats and prices. Ignore: the colour of the bus, so it is struck through.
  5. Algorithmic design: write clear steps that solve the problem, in order. 1 Count the friends. 2 Book tickets. 3 Book the bus. 4 Collect money.
  6. Myth (false): the parts have a fixed order. Many people think the four parts are steps in a fixed order, but the order drawn is one common order only. Each part is a tool: you can go back to any part, as the arrows into every part show, and real projects switch between them.
  7. Myth (false): planning always saves time. Computational thinking costs time before you write any code, and a tiny job, adding 2 and 3, needs no plan. It pays back only on a big problem, like the trip.

Good and bad points of each part

PartGood pointsBad points
DecompositionSmall parts are easy to understand. A team can share them. Each part can be tested alone.The parts must fit together later. Too many tiny parts are hard to manage.
Pattern recognitionYou reuse an old solution and save time. You can guess what will happen next.A pattern can be false. You may miss what is special about this problem.
AbstractionYou focus on what matters. The problem looks simpler.You may leave out a detail that matters. Your simple picture of the problem may be wrong.
Algorithmic designClear steps can be checked and repeated. A computer can follow them.It takes time to get right. A wrong algorithm gives a wrong answer every time.

The cells students fill in are left blank in this preview.

Your turn: plan a group chat app

A college wants a group chat app for its students. Use the four parts.

  1. Decomposition: list at least four smaller jobs.
  2. Pattern recognition: name one app you know that is like it. What do they share?
  3. Abstraction: list three things the app must know, and two things it can ignore.
  4. Algorithmic design: write five steps for sending one message.

A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.

Make a free account to save your work, or press Start lab to work through the whole lesson.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Exit quiz

Have a go

Exit quiz

6 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Remember

Important

Four parts: decomposition, pattern recognition, abstraction, algorithmic design. Use them on big problems. Watch for the bad points too.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.