April 22, 2025
Trending News

The most popular algorithms that work for you in every corner of your life, even if you don’t know it

  • April 1, 2023
  • 0

The first known algorithm in history, al-Kharizmi It was created in the 9th century. In this way, the algorithms of all systems used in modern times have been

The most popular algorithms that work for you in every corner of your life, even if you don’t know it

The first known algorithm in history, al-Kharizmi It was created in the 9th century. In this way, the algorithms of all systems used in modern times have been developed and used ever since.

Of course, some of these algorithms are sadly outdated. So, what are the popular algorithms that have been used for many years and in what areas do they work for us? let’s The most popular algorithms used in the world Let’s investigate.

Thanks to the “search algorithms” in the computer, we can find the information that gives the functions we have chosen.

Thanks to this algorithm, whose predecessor is the “binary search algorithm”, data we want We can search and find. The working logic of the algorithm is quite simple. Let’s introduce ourselves [1,3,5,9,11,13,19] We have a series of data and we have the value 5 We want to search by search algorithm.

For this, the algorithm first starts in the middle of the array. examines the part. If the middle element of the array is greater than 5, it checks with the numbers on the right. However, data on 5 and right is now ignored. So we have now [1,3,5] There is a series. The requested data is still not found. For this reason, this process is repeated. The middle element of the new array is 3. Since 5>3 it continues from the data to the right of 3, and value of 5 is found.

Autonomous systems are also based on algorithms. Thanks to the “Hair cascade algorithm” we can detect the objects we want.

We get excited when we hear the word autonomous. In particular, the ability of Tesla vehicles to drive and make decisions on their own is a sign that self-driving cars will increase in the future. What about object detection applications? precursor Hair cascade algorithm How does it work?

To make the algorithm work positive And negative We need images. Positive images are the objects we want to detect. Negative images are all images except the image to be detected. According to the algorithm, positive and negative images are compared and to perform object detection, data file is created. This file positive and negative Performs object detection based on images.

A “recursive algorithm” is used to provide part-whole relationships.

We all know the faculty. All numbers from 1 to the specified value are multiplied and the result is obtained. For example 4! formed If we want to do a factorial calculation, the result is 4x3x2x1=24 It is possible. Thanks to the part-whole algorithm mathematical calculations we can solve.

Let’s assume there is a problem. This problem has been broken into pieces. For example 4! In this example our minimum value is 1. Then it is 2, 3 and the largest value is 4. According to the algorithm instead of starting with the largest value The smallest value is 1 and the result is obtained by multiplying until it reaches 4. Of course, we explained it with a simple example. Today recursive algorithm It is commonly used, especially in advanced computer science.

The “bubble algorithm” is responsible for sorting complex numbers from smallest to largest.

Today first known algorithm The bubble algorithm, which we see as an alternative, is explained in algorithm lessons today to help students understand the logic of the algorithm. As a software instructor, I also tell my students. The working principle is very simple.

For example 5,3,2.9 order values ​​from smallest to largest we want. In this case, the bubble algorithm comes into play. Logically, take the first two numbers from left to right and compare. Slide the smaller one to the left and the larger one to the right. Algorithm according to our example as 3,5,2.9 will update the values. Since sorting is not yet complete, these processes continue. In the sequel, 3,2,5,9 and finally 2,3,5,9 The result completes our algorithm.

Euclid, which we learned in math, is actually an algorithm and it’s quite popular.

We are all in middle school and high school. EBOB You’ve heard of the concept of the greatest common denominator. The concept of EBOB is actually a Euclidean algorithm. According to the algorithm, the greater of the common divisors of two different integers is found as the EBOB value. Of course, the remainder must also be 0.

For example, let’s consider the values ​​12 and 24. The largest values ​​of 12 and 24 full partner divisors are 12. We will end up with 12/12=1 (remainder 0) and 24/12=2 (remainder 0) So we run the Euclidean algorithm and get the result of 12 according to the example.

Source: Web Tekno

Leave a Reply

Your email address will not be published. Required fields are marked *