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
| Word | What it means | Example |
|---|---|---|
| Computational thinking | A way to solve a problem so that a computer can help. | plan the trip in clear parts |
| Decomposition | Break a big problem into small parts. | tickets, bus, money |
| Pattern recognition | Find things that repeat or look alike. | every friend needs a ticket |
| Abstraction | Keep the details that matter. Leave out the rest. | a bus map shows roads, not trees |
| Algorithm | A list of clear steps that solves a problem. | a recipe |
| Problem | Something 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)
The four parts on the football trip
| Part | The question it asks | On the trip |
|---|---|---|
| Decomposition | What are the smaller jobs? | Tickets, bus, money, food |
| Pattern recognition | What repeats? Have I done this before? | Each friend needs a ticket and a seat. I booked a bus for a school trip last year. |
| Abstraction | What do I need to know? What can I ignore? | Need: names, seats, prices. Ignore: the colour of the bus. |
| Algorithmic design | What 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 questionsUse 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 questionsA 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
- 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.
- Decomposition: break a big problem into small parts. The trip breaks into four smaller jobs: tickets, bus, money and food.
- 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.
- 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.
- 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.
- 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.
- 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
| Part | Good points | Bad points |
|---|---|---|
| Decomposition | Small 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 recognition | You 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. |
| Abstraction | You 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 design | Clear 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.
- Decomposition: list at least four smaller jobs.
- Pattern recognition: name one app you know that is like it. What do they share?
- Abstraction: list three things the app must know, and two things it can ignore.
- 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 questionsRemember
Important
Four parts: decomposition, pattern recognition, abstraction, algorithmic design. Use them on big problems. Watch for the bad points too.