You are on page 1of 18

Training Workshop

on Computer Science
Education
UNPLUGGED ACTIVITIES - ALGORITHM

1, 2, 3... code ! - Fondation La main à la pâte


INSTRUCTIONS

• Do you like to eat cake? Why you like to eat cake?


Now we are going to learn how to make a cake.
• Each pupils read the recipe to make a cake.

1, 2, 3... code ! - Fondation La main à la pâte


STARTER ACTIVITY - ANALYSING A RECIPE

This recipe is …
… an algorithm.

Explain why
we can we say so.

FOR EACH STUDENT 1, 2, 3... code ! - Fondation La main à la pâte


STARTER ACTIVITY - ANALYSING A RECIPE
Classify the recipe excerpts and justify the
proposed clusters.
Kelaskan petikan resipi dan nyatakan kumpulan yang dicadangkan.

…repeat the following process 18 times…

Flip the crepe and cook the other side Make the 24 mini cakes…
Mix well.
Wash the raspberries.
Melt the batter, then mix in half of the sugar…

Pour in the milk… If the batter is too runny, then add a little flour.

While the raspberries dry, prepare the whipped cream.

Decorate with 3 raspberries.


Sprinkle with powdered sugar.

1, 2, 3... code ! - Fondation La main à la pâte


INSTRUCTIONS

• The groups must categorize the parts of the recipe


according to the clusters. Write in Google Jamboard.
Examples: Transitions, Instructions, Tests, Loops
• Complete the table. (5 minutes)
• Each group present their work. (10 minutes)

1, 2, 3... code ! - Fondation La main à la pâte


STARTER ACTIVITY - ANALYSING A RECIPE
• Each group present their work. (10 minutes)
TRANSITIONS INSTRUCTIONS TESTS LOOPS

FOR EACH GROUP 1, 2, 3... code ! - Fondation La main à la pâte


STARTER ACTIVITY - ANALYSING A RECIPE

1, 2, 3... code ! - Fondation La main à la pâte


REFLECTION
What do you learn from this unplug activity?
Algoritma adalah kaedah yang boleh digunakan untuk menyelesaikan masalah
(seperti membuat kek).
Algoritma bermaksud tatacara yang tindakan-tindakan yang perlu dilaksanakan
dan urutan
tindakan untuk menyelesaikan sesuatu masalah.
CARA MENULIS ALGORITMA
Algoritma boleh pada amnya boleh ditulis dalam pelbagai cara:
1. CARTA ALIR
Kaedah menggunakan simbol grafik seperti garis lurus, anak panah, dan bentuk
geometri untuk mewakili urutan langkah bagi algoritma yang perlu dilaksanakan.
2. PSEUDOKOD
Memerihalkan langkah-langkah algoritma dengan menggunakan ayat-ayat yang
ringkas dan padat.

1, 2, 3... code ! - Fondation La main à la pâte


MAIN CONCEPTS

An algorithm is a ………………. that can be used to solve a


problem (such as making a cake).
An algorithm can contain basic …………………., ………… and
………… .
A condition is an expression that is either ……….. or ……… .
A test indicates which action to perform when a
……………. is true.
A loop is used to ……………. the same action several times.
Some loops are repeated a specific ………… of times.
Some loops are repeated until a condition is ………. .

1, 2, 3... code ! - Fondation La main à la pâte


MAIN CONCEPTS

An algorithm is a method that can be used to solve a


problem (such as making a cake).
An algorithm can contain basic instructions, tests and
loops.
A condition is an expression that is either true or false.
A test indicates which action to perform when a
condition is true.
A loop is used to repeat the same action several times.
Some loops are repeated a specific number of times.
Some loops are repeated until a condition is true.

1, 2, 3... code ! - Fondation La main à la pâte


DESSERT ACTIVITY:
WHAT NUMBER AM I THINKING OF?

By pairs :
One member of the pair chooses a number between 0 and 10.
The other member of the pair proposes numbers and gets YES
or NO answers until he finds the number chosen.

Same thing between 0 and 100.


Same thing between 0 and 1 000.
Same thing between 0 and 10 000.

1, 2, 3... code ! - Fondation La main à la pâte


DESSERT ACTIVITY:
WHAT NUMBER AM I THINKING OF?

By pairs :
One member of the pair chooses a number between 0 and 10.
The other member of the pair proposes numbers and gets
YES, TOO LOW or TOO HIGH answers until he finds the
number chosen.

Same thing between 0 and 100.


Same thing between 0 and 1 000.
Same thing between 0 and 10 000.

1, 2, 3... code ! - Fondation La main à la pâte


DESSERT ACTIVITY:
WHAT NUMBER AM I THINKING OF?

YES / NO answers
versus
YES, TOO LOW or TOO HIGH answers

A subtle difference in the problem to be solved can lead


to very different and more or less effective algorithms.
Perbezaan halus dalam masalah yang harus diselesaikan boleh menyebabkan
algoritma yang sangat berbeza dan lebih kurang berkesan.

1, 2, 3... code ! - Fondation La main à la pâte


AS A CONCLUSION:
List examples of problems to be solved using algorithms:




1, 2, 3... code ! - Fondation La main à la pâte


AS A CONCLUSION:
List examples of problems to be solved using algorithms:
• Make pairs of socks from a pile of laundry.
• Find your name in an alphabetical list.
• Search for a word in the dictionary.
• Pack your suitcase to get back home.
• Knit a sweater.

1, 2, 3... code ! - Fondation La main à la pâte


AS A CONCLUSION:
• Making a cake is a complex task.
• By combining several simple instructions, we can perform
a complex task.
• The method for making a cake is called an algorithm or a
recipe.
• An algorithm can contain basic instructions, tests and
loops.
• A test indicates which action to preform when a condition
is met.
• A loop is used to repeat the same instruction several
times.
• Certain loops are repeated a specific number of times.
• Certain loops are repeated until a condition is met.

1, 2, 3... code ! - Fondation La main à la pâte


1, 2, 3... code ! - Fondation La main à la pâte

You might also like