Computational thinking
Computational thinking
Computational thinking means approaching a problem in a way that can lead to a clear solution a computer can carry out. It includes decomposition, abstraction and algorithmic thinking.
Key terms
Decomposition
Decomposition breaks a large problem into smaller parts that are easier to understand and solve.
Example: a school lunch-order app
- Record each pupil's meal choice.
- Check choices and count meals.
- Send totals to the kitchen.
- Show each pupil their order.
Each part can be designed and tested separately, then joined into the complete system.
Key terms
Abstraction
Abstraction keeps the details needed to solve a problem and ignores irrelevant details.
Example: to plan the shortest walking route between classrooms, a school map needs room locations and paths. It can ignore wall colours, desk positions and the names of pupils. The simplified map is easier to use for route planning.
Key terms
Algorithmic thinking
Algorithmic thinking describes a solution as a precise sequence of steps, including choices and repeats where needed.
Example: count lunch orders
- Set
totalto 0. - For each order, add 1 to
total. - Display
total.
The steps are in order, and another person could follow them to get the same answer.