Title: Algorithm
1Algorithm
A quick introduction to the concept of algorithm
Prepared by Arch PhD Antonino Di Raimo
2Let's start with thisToday,we're going to make
a .
3I need
- Ingredients
- 1/2 kg (about 18 ounces) of ready made rolled
dough - 200 g (about 7 ounces) of pressed walnuts
- 3 cups of sugar
- 2 cups of water
- 1 teaspoon of cinnamon
ingredients are the first thing I need in order
to make something... They are like variables that
may change in quantity and quality
4Cooking Instructions
1) spread the rolled dough
2) sprinkle the walnuts with the cinnamon
3) then cover it with another layer of dough
4) cut the baklava in equal squares or diamond
shapes
5) cover it with another layer of dough
6) cover the baklava with melted butter
7) leave it to bake in a hot oven
8) afterwards, leave it to cool
9) prepare the syrup (with the water and the
sugar)
10) let the syrup boil for 5 minutes
11) add the juice of half a lemon
12) remove the syrup from the heat
13) let the syrup cool for about 5 minutes,
14) then spread it on the baklava
5Algorithm
through the metaphor of the recipe, now we can
explain the concept of algorithm
An algorithm can be intended asstep-by-step
procedure for computation. Algorithms are used
for calculation, information processing, and
automation.
- A finite list of instructions for calculating a
result (or an outcome) of a procedure
- It starts with an initial state and initial input
- Thorough a finite number of states it produces a
final output