Computational Thinking - GR 9
Computational Thinking - GR 9
Activity 4.1.1
a. What is computational thinking?
b. What is the purpose of computational thinking?
c. Describe the Pattern recognition and Algorithmic thinking cornerstones by
i. Defining pattern recognition and algorithmic thinking
b To help us to complete tasks successfully and to solve problems systematically.To help us arrive at a solution that both humans and
computers can understand
Algorithm – A precise sequence of steps or instructions that someone (or the computer) can follow to perform a task/solve a problem
successfully
c (ii) Pattern recognition – Any good example where a pattern is obvious. E.g. Calculate percentages for test results; Draw a shape;
Algorithm –
1. Begin
2. Get the Test mark
3. Get the Test total
4. Calculate the percentage
a. Percentage ß Test mark / Test total × 100
5. Display percentage
6. End
c (iii) Pattern recognition – Recognising patterns helps you to identify similarities, shared characteristics and/or differences within or
between problems. This helps to make predictions or to generalise solutions. If one can identify a pattern, one is generally able to
predict, for example, the next item in a series or the next step in completing a task.
Algorithm – This approach automates the problem-solving process. An algorithm is a detailed, step-by-step process followed in order
to accomplish a specific task or to solve a specific problem.
Pattern recognition
Square Pentagon Hexagon Heptagon Octagon Circle
In Scratch code create a program using pattern recognition and algorithmic thinking.
a. Draw a square
c. Now change the number of sides and steps to 6 and 8 respectively and watch what happens.
d. Finally, change the number of sides and steps to 360 and watch what happens.
We see that by only changing the number of sides, we can use the code to draw different shapes.
Algorithm