Why Is Learning Algorithms Important? Which Tools Can We Use?

Bu yazıyı Türkçe okuyun · Leer en español

Let’s begin by answering the question “What is an algorithm?” An algorithm can be defined as the shortest and most accurate path to a solution for a given problem. What lies ahead of us, though, may be not a problem to solve but a goal to reach. In that case we may need to update our definition: an algorithm is not just the way to solve a problem but the best path to success.

In everyday life we develop countless algorithms without even noticing, to deal with the problems we face. For example, say you want to go to a nice café on the far side of the city you live in. You could call this a problem, or a goal. To reach the café, you did some research and found answers to questions such as which bus to take from which stop, where to get off and where to change. In fact, you made yourself a road map. And the first thing you did was set your destination. With this example we have caught the most important point of an algorithm: defining the problem, or setting the goal. Of course, to work out the path to the solution, we first need to know where we will end up. That is why, when creating an algorithm, we should always write the goal on the board first. Once the goal is set, the next step is to draw the path that leads to it, just as we did in the café example. To show this path, we use a diagram called a flowchart. I will briefly explain flowcharts and then turn to some apps we can use to help children understand algorithmic thinking.

Flowchart symbols and their meanings (labels in Turkish)
Flowchart symbols (labels in Turkish): display on screen, printer output, start / end, condition, data input, direct-access file, keyboard input, loop, sequential-access file, process, function call, flow direction.

This table shows the symbols used when designing the algorithm for a problem. Each shape in the table stands for a different command. Now let’s reinforce the topic with an example that uses these commands.

Example flowchart for the problem of a lamp that doesn't work (labels in Turkish)

In the example here, our problem is a lamp that doesn’t work, and we will try to find out what is wrong with it. First, we defined the problem: the lamp doesn’t light up. Then we checked whether the lamp is plugged in. If the answer to “Is the lamp plugged in?” is no, we can solve it by plugging it in. If it is plugged in and the problem continues, we move on to the question “Is the bulb burned out?” If the answer is yes, we can solve it by replacing the bulb; if the answer is no, the solution is to replace the lamp. As in this example, we first define the problem and then reach the result with the help of a flowchart. Now let’s move on to apps we can use for teaching algorithms. The first one is called CodeMonkey.

CodeMonkey coding platform promotional image

CodeMonkey is an online platform that lets us learn coding through play, both with blocks and with typed code. Although it is aimed mostly at pre-readers and primary school children, its advanced levels are interesting for middle and high school students too. In the app you control a monkey. The monkey faces various problems and is given goals to reach. While playing, you build an algorithm and work towards the solution, just like in the examples above. The only difference is that in CodeMonkey you create the flowchart by guiding the character in the game. This app lets children, who are constantly surrounded by technology, learn algorithms without leaving the digital world.

Now to another online learning platform: Compute It.

Compute It coding platform logo

Compute It is a gamified online platform that helps us learn algorithmic and programming logic for good. With it you can see simulations of how commands like repeat (for) and if, which form the basis of programming, work. Starting simple and getting more complex, the app fully explains how algorithms are structured. It is ideal for adults as well as young children who want to understand programming and algorithms. You may find the advanced levels a bit challenging, but it is one of the best examples of learning while having fun. I will add links to both apps at the end of the post. I hope you enjoy using them as much as I did.

In this post I tried to explain the word “algorithm”, which you hear all the time and come across in many places but perhaps don’t fully understand, and the platforms you can use for teaching algorithms. I hope it was a fun and useful read. See you in the next posts. Stay well, with love and knowledge.

App links:

https://www.codemonkey.com/

https://compute-it.toxicode.fr/

“Why Is Learning Algorithms Important? Which Tools Can We Use?” için 3 yorum

Bir Cevap Yazın