Computer software is basically a certain sequence of scripts. Correspondingly, Algorithms, like functions in mathematics, are a series of commands that show what / what will happen after a command.
Algorithms, which state the steps to be applied for the solution of the problem and the results in a certain order, can show the commands in software and what happens when that command runs. Algorith ms that we use in daily life without realizing it are the most basic part in the software preparation process and the operation of the software.
If we give an example from daily life to grasp the logic of the algorithm, we can examine the cake making algorithm. First of all, the necessary information and data should be obtained in order to prepare the Algorithm of any problem or transaction. As an example, let’s examine the cake making algorithm:
1-Provide and prepare the necessary ingredients for the cake. 2-Mix sugar and eggs in a bowl and beat. 3-Add oil to the mixture obtained and whisk to consistency. 4-Add and whip the other ingredients available. 5-Pour the mixture into the cake pan. 6-10 min. Put the mold in the oven, which started to be preheated. 7-Wait and cook until cooked 8-Take out the cake after cooking 9-Wait for the cake to cool. 10-Cut the cake into slices and serve.
Even in a simple cake making, we follow a certain order and commands, namely the Algorithm, without realizing it. Algorithms that we use in many parts of our daily life is a process we also apply in the problem solving and software process. However, the Algorithms we use in this software process also have some rules created by his father, Harezmi:
► When creating an algorithm, inputs, that is, the values to be used, must be determined.
► Output at the end of the algorithm, ie a value, result must be produced.
►The order and commands of the algorithm should be clear and should not lead to different results.
► Algorithms for different possibilities and results should consist of finite steps.
►Each process should be as simple as the user can show on paper.
You have to be careful about the commands and your attention in the created algorithm, because we must mention that changing the order and having different results at the beginning. Let’s skip Phase 3 and move from Phase 2 to Phase 4. At the end of the algorithm, maybe we can get the cake again, but we may not get the cake in the desired taste and consistency. From this point of view, the commands are not extremely high in order not to skip the commands and follow them in the correct order, so that the problem and software can give a healthy result.
The solution of a problem or the preparation / working order of a software can be created by showing different algorithms in more than one way. It depends on the developer’s decision, as well as on the features of the algorithms installed. The established algorithm should provide the best solution to the problem in the most precise, the shortest and the most practical way and should meet the wishes and needs of the problem owner.
To read to read my other blog posts: “https://www.flutteranywhere.com“