Uploaded by Craimime Dramios

MOP Teaching Demo Computational thinking and programming

advertisement
COMPUTATIONAL
THINKING AND
PROGRAMMING
1.1 Algorithm all around us
BY TR.CHAN THAR
We are going to learn:
 What is an algorithm?
 Using an algorithm to do a task
 Learn what an error is
 Find an error in an algorithm
What is an algorithm?
 So, What is an algorithm?
 Algorithm is ______________________________________________________!
 Algorithm is a pattern or a set of instructions to follow while doing a task.
Cont’d: What is an algorithm?
 So, What if we don’t follow the instructions or a pattern of a algorithm while doing a
task?
1) We don’t get the result as we have expected.
2) We don’t get the result at all.
Algorithm!!!
We use algorithm every single day:
 When we get dressed
 When we pack our backpack
 When we have our lunch
 When we listen to music
 When we drive
 When we play games
 When we put the shoes on *
 When we
_________________________________!
Unplugged Activity 1:
Washing your hands with an algorithm!
 The algorithm needs to be in
the correct order called
Sequence!
Mistakes in algorithm!
 If something goes wrong in
the algorithm, there must be a
mistake in it.
 In computing, we call a
mistake, an error.
Examples of errors in algorithm
are:
 Putting instructions in the
wrong order
 Missing out some of the
instructions
Unplugged Activity 2:
Find an error in an algorithm of making pizza!
 Find the error in this algorithm.
 Say the sequence in the correct order.
 Which instruction is in wrong place?
 How did you find the error in this pizza algorithm?
THANK YOU!!!!
Download