Page 84 - 2502_Pakistan-kifayat_C-6
P. 84
Algorithm:
Step 1: Start.
Step 2: Cut the lemon in half.
Step 3: Squeeze both halves into the glass.
Step 4: Add a spoon of sugar.
Step 5: Pour in the water.
Step 6: Stir for 20 seconds.
Step 7: Stop.
Output: A glass of sweet lemonade is ready to drink.
Because every step is clear and in order, anyone who follows this list with the same ingredients will
always end up with the same refreshing drink. That makes it an algorithm.
Double Tap Century #Critical Thinking
21 st
Skills
State whether the following statements are true or false:
1. An algorithm is a random set of steps used to solve a problem.
2. Algorithms must be followed in a specific order to accomplish a task.
3. Algorithms always end after an infinite number of steps.
4. The output of an algorithm is always the same when starting from the same points.
5. Algorithms are written in complex language that is difficult to understand.
CORE COMPONENTS OF ALGORITHMIC THINKING
Algorithmic thinking is the ability to solve problems step-by-step, making tasks simpler and more
efficient. The core components of algorithmic thinking are decomposition, identifying key information,
logical reasoning, and confidence in decision-making. Let's explore these components using the
common scenario of making a cup of tea.
Decomposition (Breaking Down a Problem)
Decomposition means breaking a complex task into smaller steps to make it easier to handle.
Scenario: Making a Cup of Tea
1. Boil the water – First, boil the water.
2. Prepare the tea – Put the tea bag or loose tea into the cup.
3. Pour the hot water – After boiling, pour it over the tea.
82 Premium Edition-VI

