 A versatile cross-platform mind mapping tool. Get from App Store A versatile cross-platform mind mapping tool. Get from App Store
edraw-max-horizontal
Product Tour
Guide
What's New
EdrawMax Online
TRY IT FREE

# What is Algorithm - Definition, Types and Application

> Basic Diagram Knowledge > What is Algorithm - Definition, Types and Application
Posted by James Freeman | 08/26/2020
An algorithm is a step-by-step demonstration of data processing or problem-solving. This page will introduce the definition, types, and applications of algorithms.

An algorithm can be described as a procedure or formula for problem-solving. Algorithms can be widely used in various areas, computer programming, mathematics, and daily lives. Then what is the definition of an algorithm? How many types are there, and in what ways can they be applied?

### Definition of Algorithm

The algorithm can be defined as "a sequence of steps to be carried out for a required output from a certain given input". There are three main features of the algorithm from its definition:

1. The essential aim of an algorithm is to get a specific output,
2. An algorithm involves several continuous steps,
3. The output comes after the algorithm finished the whole process.

So basically, all algorithms perform logically while following the steps to get an output for a given input.

### Types of Algorithm

Algorithms can be classified into 3 types based on their structures:

1. Sequence: this type of algorithm is characterized by a series of steps, and each step will be executed one after another.
2. Branching: this type of algorithm is represented by the "if-then" problems. If a condition is true, the output will be A, if the condition is false, the output will be B. This algorithm type is also known as "selection type".
3. Loop: for this type, the process might be repeatedly executed under a certain condition. It is represented by "while" and "for" problems. But make sure the process will end after a number of loops under the condition. This algorithm type is also known as "repetition type".

### Applications of Algorithm

As mentioned before, algorithms can be used in many areas, and they are often represented in flowchart form for visual understanding. In other words, a flowchart is a diagram that represents an algorithm, showing the steps in various boxes and displays the process by connecting the boxes together. Here are some examples of algorithm applications in flowchart forms.

1. Algorithm Application for Math

Determine and Output Whether Number N is Even or Odd 2. Algorithm Application for Computer Programming

Draw a flowchart for computing factorial N (N!) 3. Algorithm Application for Daily Life

Determine Whether the Student Passed the Exam or Not The examples above give a clear demonstration of the applications of algorithms in math, computer programming, and daily life. Creating a flowchart might be the best way to represent an algorithm. For more examples, please refer to the following links:

### How to Create an Algorithm?

After knowing the basic concepts of algorithm and its applications, it is time to create your own algorithm. First, download the software EdrawMax. Step 1: After logging in, you can find “flowchart” button. Click it and open a blank page to start creating your algorithm.

Step 2: Select the shapes you need, then drag and drop them to the canvas.

Step 3: Select arrows to represent the direction of the whole process.

Step 4: Fill in the shapes with content.

Step 5: Save or export your algorithm to other file formats

As a matter of fact, creating an algorithm is nothing difficult. All you have to do is follow the rules.

## Get Started! You Will Love This Easy-To-Use Diagram Software

EdrawMax is an advanced all-in-one diagramming tool for creating professional flowcharts, org charts, mind maps, network diagrams, UML diagrams, floor plans, electrical diagrams, science illustrations, and more. Just try it, you will love it!