Algorithm A quick introduction to the concept of algorithm Prepared by Arch Ph. D Antonino Di Raimo
Let's start with this: Today, we're going to make a …. Bakllava
I 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
Cooking Instructions: (repeat) 1) spread the rolled dough 2) sprinkle the walnuts with the cinnamon 3) then cover it with another layer of dough (repeat) 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 (wait) 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
Algorithm through the metaphor of the recipe, now we can explain the concept of algorithm An algorithm can be intended as step-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 Thorough a initial state and initial input finite number of states it produces a final output