Trying to apprehend the similarities between algorithms and daily activities

 

similarities between algorithms and daily activities

An algorithm according to (Kani, 2020, 1.19) is an effort with a sequence of operations arranged logically and systematically to solve a problem to produce a certain output.

To understand the algorithm that I will demonstrate from daily activities, the algorithm in my opinion is an action that has been made by the programmer to perform a certain action, and this action will affect the next action or complete it.

1. Exam Score Algorithm

algotithm preview

When we take an exam, we will get the results of the exam that has been done, whether we pass it or not, this example also includes an example to understand the algorithm that I call the test score algorithm. Okay, let's start now, first let's say that the person who takes the exam (student) is a user, while our teacher/lecturer is like a programmer. Let's look at the image below.

In the diagram above the teacher/lecturer determines the graduation of students who take the exam, with a total number of points is 100, if the student's points are less than 70 points then the student gets a "C" score, and if he gets more than 70 points and less than 80 he will get a score "B while", those who get more than 90 points will get "A". If a student gets a "C" then the student is declared not to have passed. 

algorithm flow

Example of test scores :

- Bob got 69 points on his exam, is Bob passed his exam? If you answered pass, it means that your answer is not correct. This is because students who pass must have points above 70, namely 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, and 100. Do you understand? If not, I've added another example, but if you like it, please skip the example below.

- Ema gets 76 points, which "A" or "B" or "C" score will Ema get? If you answered A and C, your answer is not correct. The correct answer is that Ema got a "B" because point 76 is still in the range of 71 to 80.

In the example above, the process of assessing A, B, C, and graduating students whose name is ALGORITHM.

Yep, I hope you already have an idea of what yahoo is, ok bro?. To increase understanding, you can continue next to find out an easier example of an algorithm.

2. Algorithm for Making Coffee Drinks

making coffee algorithm

When we will make coffee drinks, we will make it in stages, for example in the following steps.
- Provide stove, pot, water, sugar, and coffee
- Heating water or brewing water
- While waiting for the water to be hot we put coffee and sugar into the glass
- When the water is boiling we pour the water into a glass that is already filled with coffee and sugar.
- Then we stir the water in the glass with a spoon until the water and coffee are well mixed.
- After all of the above are done, then we can enjoy the hot coffee drink

The steps above are included in the example algorithm.
Maybe the steps for making coffee drinks above are different from the steps you often do, this is also part of the algorithm. 

So the steps cannot be patented, every programmer is free to make his own algorithm even though the goal is the same, and it is a good programmer who can make algorithms that have a high level of efficiency.

So far you understand bro? If you still don't understand, I will give an example of the last easiest algorithm.

3. Light switch algorithm

switch-aalgorithem
The light switch functions to turn the lights on and off, when the light switch is changed to the ON position, the lights will turn on, and vice versa. The process of someone pressing the switch to turn on/off the light is called an algorithm.

Hopefully, the explanation above can help you to understand what an algorithm is, bro. If you have any questions please contact me via the contact page. That is all and thank you.

Also read: Programming language translation method so that it can be executed

Post a Comment

Silahkan corat-coret ....!!!

Previous Post Next Post