Chapter 2 · Computational Thinking & Algorithms
2.1Introduction to Computational Thinking
What computational thinking is, the four steps behind it, and how you already use it in daily life.
Written and checked by Muhammad Raheel(opens in a new tab)
Full Stack Developer · AI Engineer · Reviewed 21 Oct 2026 · 3 min read
On this page
This chapter starts with a skill, not a machine. Computational thinking is a careful way to attack any problem, big or small. Computer scientists use it, but so do you, every time you plan your day or fix something that is not working.
The key idea is size. A big problem feels hard because you cannot see where to begin. Once you cut it into small pieces, each piece is easy to handle.
Computational Thinking
The book describes computational thinking as thinking like a problem solver. You try to understand the problem one step at a time. Then you do four things:
- break the big problem into smaller parts,
- look for patterns in the problem and in its solutions,
- remove the details that do not matter and keep the important points,
- write clear steps that solve the problem.
Those final steps are useful because anyone can follow them. A person can follow them, and so can a computer. In the end, this way of working helps you think logically and clearly.
Real-life examples of Computational Thinking
The book shows that this skill is part of normal life. Making a daily timetable is one example. Cooking from a recipe means following steps in order. Planning a trip means breaking the work into smaller tasks. Sorting books by subject or by size is spotting a pattern. Fixing a problem on your phone needs logical thinking. Managing money needs planning and good decisions. Strategy games make you think several moves ahead.
The book collects these ideas in Figure 2.1, "Computational Thinking in Daily Life". It shows four steps in a row, each with a short label:
| Step in Figure 2.1 | The book's label | What it means for you |
|---|---|---|
| 1. Decomposition | Break Down the Problem | Cut the problem into small parts |
| 2. Pattern Recognition | Find Patterns | Notice what repeats |
| 3. Abstraction | Focus on What's Important | Ignore details that do not matter |
| 4. Algorithm Design | Create Step-by-Step Solution | Write the steps in order |
Notice how the four steps match the four actions in the paragraph above. The book prints the step names only in the figure. Linking each name to a sentence is our way to help you remember them.
Practice this topic
Short questions
1.What is meant by computational thinking?2 marks
Answer
From the book: "Computational thinking is a way of thinking to solve problems clearly and logically. It helps us break big problems into smaller and simpler parts." "Computational thinking means thinking like a problem solver. It focuses on understanding a problem step by step."
2.Why is computational thinking important in problem solving?2 marks
Answer
From the book: "It helps us break big problems into smaller and simpler parts." We look for patterns, remove unnecessary details and "create clear steps to solve the problem. These steps can be followed by humans or computers. Computational thinking helps us think logically and clearly." Topic 2.2 (page 21) adds: "It helps reduce mistakes and confusion. Computational thinking improves overall problem-solving ability."
3.What steps do we follow in computational thinking?2 marks
Answer
From the book: "We break a big problem into smaller parts. We look for patterns in problems and solutions. We remove unnecessary details and focus on important points. We then create clear steps to solve the problem."
4.Name the four steps shown in Figure 2.1: Computational Thinking in Daily Life.2 marks
Answer
From Figure 2.1 (page 21): "1. Decomposition" (Break Down the Problem), "2. Pattern Recognition" (Find Patterns), "3. Abstraction" (Focus on What's Important) and "4. Algorithm Design" (Create Step-by-Step Solution).
5.Give any three real-life examples of computational thinking from the book.2 marks
Answer
Any three of these, from the book: "Making a daily timetable is an example of computational thinking. Cooking a recipe uses step-by-step instructions. Planning a trip includes breaking tasks into smaller parts. Sorting books by subject or size shows pattern recognition. Fixing a mobile phone problem uses logical thinking. Managing money needs planning and decision making. Playing strategy games requires thinking ahead."
6.Who uses computational thinking? Is it only for computer science students?2 marks
Answer
No. From the book: "This thinking is not only for computer science students." TIDBIT: "Computational thinking is used by scientists, engineers, and even chefs when planning complex tasks."
Long questions
1.Explain computational thinking and discuss its importance in solving problems with suitable examples.8 marks
Answer
Cover the whole topic, using the book's text:
- What it is (page 20): "Computational thinking is a way of thinking to solve problems clearly and logically. It helps us break big problems into smaller and simpler parts. This thinking is not only for computer science students." Chapter Summary (page 30): "Computational thinking is a problem-solving approach in which a problem is understood, broken into smaller parts, and solved step by step using logical thinking."
- How it works, "Computational Thinking" (page 20): "Computational thinking means thinking like a problem solver. It focuses on understanding a problem step by step. We break a big problem into smaller parts. We look for patterns in problems and solutions. We remove unnecessary details and focus on important points. We then create clear steps to solve the problem. These steps can be followed by humans or computers."
- Importance: "Computational thinking helps us think logically and clearly." (page 20). Topic 2.2 opening (page 21): "Problem solving using computational thinking helps us solve problems in a logical and organized way. It helps reduce mistakes and confusion. Computational thinking improves overall problem-solving ability."
- Suitable examples, "Real-life examples of Computational Thinking" (page 21): a daily timetable; "Cooking a recipe uses step-by-step instructions."; "Planning a trip includes breaking tasks into smaller parts."; "Sorting books by subject or size shows pattern recognition."; "Fixing a mobile phone problem uses logical thinking."; "Managing money needs planning and decision making."; "Playing strategy games requires thinking ahead." TIDBIT (page 20): it "is used by scientists, engineers, and even chefs when planning complex tasks."
- Figure 2.1: Computational Thinking in Daily Life: 1. Decomposition (Break Down the Problem), 2. Pattern Recognition (Find Patterns), 3. Abstraction (Focus on What's Important), 4. Algorithm Design (Create Step-by-Step Solution).
Aim for 250-350 words.
2.Describe the four steps of computational thinking shown in Figure 2.1: Computational Thinking in Daily Life. Match each step with a sentence from the topic text and a real-life example from the book.8 marks
Answer
Name each step with its label from Figure 2.1 (page 21), then the matching sentence from "Computational Thinking" (page 20) and the matching example from "Real-life examples of Computational Thinking" (page 21):
- "1. Decomposition, Break Down the Problem": "We break a big problem into smaller parts." Example: "Planning a trip includes breaking tasks into smaller parts."
- "2. Pattern Recognition, Find Patterns": "We look for patterns in problems and solutions." Example: "Sorting books by subject or size shows pattern recognition."
- "3. Abstraction, Focus on What's Important": "We remove unnecessary details and focus on important points." (The book gives no real-life example sentence for this step.)
- "4. Algorithm Design, Create Step-by-Step Solution": "We then create clear steps to solve the problem. These steps can be followed by humans or computers." Example: "Cooking a recipe uses step-by-step instructions."
End with the book's line: "All these activities use computational thinking in real life (as shown in Figure 2.1)." Note: the book prints the four step names only in the figure; joining each name to a text sentence is the student's explanation.
Aim for 200-300 words.
In this chapter
- 2.1Introduction to Computational ThinkingYou are here
- 2.2Problem Solving Using Computational Thinking
- 2.3Logic as a Knowledge Representation Framework
- 2.4Propositional Logic
- 2.5Truth Tables
- 2.6Propositional Equivalence
- 2.7Propositional Satisfiability
- 2.8Predicate Logic
- 2.9Quantifiers in Predicate Logic
- 2.10Applying Predicate Logic to Real-World Problems
- 2.11Logic-Based Reasoning and Inference