Computational Thinking and Algorithmic Problem Solving
Computational Thinking and Algorithmic Problem Solving
Algorithmic Problem
Solving
Learning Objective
To solve problems using
What
Computational Thinking
?
Before computers can solve a problem,
Why? the problem and how it can be
resolved must be understood.
https://www.youtube.com/watch?v=mUXo-S7gzds
There are four key
techniques (cornerstones)
to computational thinking:
developing
looking for a step-by-
similarities step
among and solution to
within the
problems problem, or
the rules to
COMPUTATIONAL THINKING
Each cornerstone is as
important as the others.
total?
The sum of the integers from 1 to 200 = 200x201/2 = 20100.
Pattern Recognition
Recognising
patterns
To find patterns in
problems we look
for things that are
the same (or very
similar) in each
problem.
Preheat oven to 190C Preheat oven to 180C
There are two
different methods Blend butter, sugar & flour Whisk all butter and sugar
for baking the cakes
Bake for 25 minutes Mix in eggs
in the picture.
Whisk 300ml of Cream Bake for 30 minutes
Can you
recognise any
similar patterns?
Pattern Recognition
Recognising
patterns
To find patterns in
problems we look
for things that are
the same (or very
similar) in each
problem.
Preheat oven to 190C Preheat oven to 180C
There are two
different methods Blend butter, sugar & flour Whisk all butter and sugar
for baking the cakes
Bake for 25 minutes Mix in eggs
in the picture.
Whisk 300ml of Cream Bake for 30 minutes
Can you
recognise any
Preheat Oven, whisk ingredients, bake
similar patterns?
Challenge?
If he leaves the wolf and the sheep alone together, the wolf
will eat the sheep. If he leaves the sheep and the cabbage
alone together, the sheep will eat the cabbage.
* We now have the Farmer, the Cabbage and the Goat on one side and the Wolf on the other side
DONE!
• https://www.youtube.com/watch?v=o0MH7U1bB58
(Bonus question: what if there is also a rabbit? Left unguarded it could be eaten by the wolf, chased
away by the goat, or it would eat the cabbage.)
Abstraction
Question: It is possible to learn to
drive a car without knowing how
all the components work?
Abstraction
For Example:
When drawing a dog, which of the
following characteristics could be ignored?
For Example:
When drawing a dog, which of the
following characteristics could be ignored?
Order of execution
indicated by arrows Step C: output number
Step C
Sum = num1+num2
Print Sum
End
Unit 3 Selby High School Flash 30
Example (2)
Draw a flowchart for a program find the greater number between
two numbers
Solution:
Step1: Start
Step2: Read/input A and B
Step3: If A greater than B then C=A
Step4: if B greater than A then C=B
Step5: Print C
Step6: End
SavingsBalance
Question 1
Question 2
Question 3
a. Decomposition
b. Pattern recognition
c. Coding
Challenge?
Question 4
Question 5
Question 6
Question 7
Question 8
a. Decomposition
b. Abstraction
c. Algorithms
Challenge?
Question 9
a. Two
b. Four
c. Three
Challenge?
Question 10
a. During decomposition
b. At the end, when programming a computer
c. When writing algorithms
Notes?
https://code.org/curriculum/unplugged
https://www.raspberrypi.org/learning/turtle-snowflakes/worksheet/