The chapter in short
Computational thinking is a way of solving problems that a computer, or a person, can carry out. It breaks a problem into parts, spots patterns, ignores unnecessary detail and writes the solution as clear steps.
The chapter covers decomposition, pattern recognition, abstraction and algorithms, and how algorithms are written as flowcharts and pseudocode and checked by dry running.
Computational thinkingDecompositionAbstractionAlgorithmFlowchartPseudocode
Key points
- Decomposition breaks a big problem into smaller ones.
- Pattern recognition finds similarities that let one solution be reused.
- Abstraction keeps only the details that matter.
- An algorithm is a finite, ordered set of clear steps that solves a problem.
- Flowchart symbols: oval for start/stop, parallelogram for input/output, rectangle for process, diamond for decision.
- A dry run traces an algorithm by hand with sample values to find errors.
Definitions
- 1
Computational thinking
A problem-solving method that uses decomposition, pattern recognition, abstraction and algorithms.
- 2
Decomposition
Breaking a complex problem into smaller, manageable parts.
- 3
Abstraction
Removing unnecessary details to focus on what matters.
- 4
Algorithm
A step-by-step set of instructions to solve a problem.
- 5
Flowchart
A diagram that shows the steps of an algorithm using standard symbols.
- 6
Pseudocode
An algorithm written in plain, structured English, not in a programming language.
- 7
Dry run
Working through an algorithm by hand to check that it gives the right result.