We start over with an overview of algorithms. What is the algorithm? Definitions and examples.

An algorithm derived from the name of mathematician Muhammad ibn-Musa al-Khwarzmi is the solution to the problem related to the following criteria.

A list of troubleshooting suggestions, procedures, or formulas.

Can be proved.

Something that always ends and works.

## What is the algorithm?

Algorithms can be defined in this way: “Sort the steps for output required from given input” His definition is with three main features of Alfioridum:

The purpose of the algorithm is to obtain specific output,

Algorithms have constant continuous steps,

The output comes with the complete process of algorithm.

So basically, all the algorithms logically submit, moving the steps to get output for given input.

## Application of algorithms

As mentioned earlier, algorithms can be used in many areas and they are often shown as flowcharts in order to understand the views. In other words, flowcharts are a diagram that presents an algorithm, indicates the steps in different boxes and collects the box and displays the process. Here are some examples of algorithm applications in flowcharts.

#### 1) Algorithm application for mathematics

Determine and obtain the output whether the number N is even or odd

#### 2) Algorithm application for computer programming

Draw a flowchart for the computing factorial N (N!)

#### 3) Algorithm application for daily life

Determine if the student has passed the exam or not

The examples given above give clear demonstration to the application of algorithms in mathematics, computer programming, and daily life.

## What is a Computer Algorithm

You use the code to use the computer. You need an algorithm before writing code.

The algorithm is a list to follow the rules to solve a problem.

To do anything to the computer, you have to write a computer program. To write a computer program, you must tell the computer step-by-step what exactly you want to do.

The computer then “executes” the program, following each step mechanically, to complete the final goal.

When you are telling the computer what to do, you also have to choose how to do it. This is where the computer algorithms come in.

Algorithm is a basic technique used to work. Let’s follow an example to help get an understanding of the algorithmic concept.

## How do we use algorithms in our daily lives?

Let’s say that one of your friends is coming to the airport, and your friend has to reach your home from the airport. Here are four different algorithms that you can give to your friend at your home:

Taxi algorithm: Get on the taxi stand.

Get into the taxi.

Give the driver my address.

Call-me algorithm: Call your cell phone when your plane arrives.

Meet me outside the baggage claim

Car Algorithm on Rent: Visit the rental car at the place.

Rent a car.

Follow the instructions to come to my house.

## Just algorithm:

The baggage came out of the claim, just hold the number 104.

Goregoan town, landed on Road No. 12.

Let’s move ten steps in the left for my house.

All four of these algorithms meet exactly the same goal, but each algorithm does it completely differently.

Each algorithm has a different cost and a different travel time. For example, taking a taxi is probably the fastest way, but the most expensive too. Taking the bus is certainly less expensive, but completely slow down You select the algorithm based on the circumstances.

In computer programming, there are often many different ways – algorithms – to complete any task.

There are advantages and disadvantages of algorithm in different situations, one sort is sorted where a lot of research has been conducted, since five different algorithms are used in computer time sorting ranking:

- Bin sort

- Merge sort

- Bubble sort

- Shell sort

- Quicksort

If you have a million integer values between 1 and 10 and you need to sort them, then there is the right algorithm for using bin sort. If you have a million book titles, quick sort can be the best algorithm. After knowing the strengths and weaknesses of different algorithms, you choose the best for work.

## Examples of how algorithms are used today

Today, algorithms are used billions every day for various purposes. The following algorithms are used so many different methods are used here below.

The algorithm helps control the traffic light.

Computers use algorithms to convert data (i.e., changing decimal to binary).

Google Search uses PageRank algorithm to sort search results.

Encryption, information is an algorithm for decrypting encryption and keeping data safe.

GPS uses algorithms to find the best route for a destination.

There are dozens of types of algorithms that are used to sort the data.

Uses algorithms to use smartphone, Wi-Fi and wireless communication.

E-mail spam detection uses algorithms to filter out bad e-mails.

Use data compression (e.g., YouTube video) algorithms to get information.

## What is the future of algorithms?

Instead of thinking about the future of algorithms, some people will claim that the future is theirs.

The algorithm is, in fact, at the heart of potentially powerful technologies like artificial intelligence. Algorithms are already the basis of automated learning techniques or “machine learning”, thus we are surprised every day with new features.

Today, algorithms are behind virtual assistants or autonomous vehicles. But what about tomorrow …?

## Leave a Reply