# How to Develop an algorithm in 2021

This is a complete guide to Develop Algorithm, Flowchart and Pseudocode.

In this guide you’ll learn all about:

• Algorithm
• Steps to Develop Algorithm
• Counter
• Accumulator
• Lots more

Let’s kick things off.

Specifically, in this Article I’m going to cover The Steps to develop algorithm and Characteristics of Algorithm Which is SUPER important in 2020 to solve your Problem.

Let’s dive in.

## What is Algorithm?

Algorithm is A set of Formal instructions that is used to solve Logical and mathematical Problems.

Algorithm is Written in English With Mathematical Expressions, Algorithm takes input, carries Number of Effective Steps in a Scalable Amount of Time.

### Characteristics of Algorithm.

Steps included in the Algorithm should be simple.

• Logic should be clear in each step.
• Algorithm must be effective and lead to a unique solution to the Problem
• Algorithms should come to end after Scalable Steps.
• Steps  of Algorithm Should be Clear and Accurate. It Must have a Time Limit for the execution.
• The Output of the Algorithm must be correct Logically.

### Steps To Develop Algorithm.

Developing an algorithm for Your Problem is easy but one should consider the Following Steps before Developing it.

Now, let’s learn to develop algorithm.

• The Problem should Be recognized Deeply.
• The Input  required by the problem to get desired output, should be Pointed.
• Logic that can Produce The necessary Output From the Input Should Be Developed.
• The Required Output of the Problem Should Be Pointed out.
• The Accuracy of The Algorithm Before Solving the Real problem, Should be Tested, for a given set of data.

Algorithm example:

```</p>
Step 1: Start
Step 2: Accept the first number as(x)
step 3: Accept the second number as(y)
step 4: find the sum of x and y
(Sum = x + y)
step 5: Display the sum
Step 6: Stop

<p>```

Also Read: Definitive Guide: What is Qbasic?

Another Example of an Algorithm, That will surely help you to develop the Algorithm.

```</p>
Algorithm that generates first 5 Natural Numbers
Step 1: Start
step 2: Store 1 in Variable x
Step 3: Display the Value stored in Variable x
Step 4: Increase The Value of A by 1
Step 5: Is A = < 5
{ If yes: Go to Step 3
no: Go to Step 6}
Step 6: Stop

<p>```

Hope You’ve got the Idea to Develop Your own Algorithm as I Mentioned the Steps Needed to Develop A Algorithm.

Now Let’s Move Towards Counter.

## What is Counter?

Counter is Basically a Variable that controls the number of loops to execute.

The Counter Variable is incremented or decremented with some fix as required.

The Following Should Be Take Care While Using Counters:

• The Counter Should be Initialized Setting It to the Starting Value.
• Increase or Decrease the counter variable each time the loop is executed.

## What is an Accumulator?

Accumulator simply Accumulates the actual value of the data item with another to provide the final total.

Accumulator is represented by a number variable that stores value in a memory location, that is addressed by its name. It Should always be Initialized to zero at the beginning of the program.

## Flowchart

Flowchart is The Graphical representation of logical Sequence of Steps involved to solve a Logical or mathematical Problems with Different Shapes Connected by Arrows.

Every Symbol Represents Unique Activity and The Arrows That Join The shapes, they are called Flowlines.

• Flowchart Helps In Debugging Of  program.
• Flowchart helps Detect deficiencies in the problem statement
• Flowchart Helps a programmer to develop program logic for future reference for a completed program.

• Flowchart is Time Consuming Due to the Drawing Of Symbols.
• To make Changes requires re-drawing of Flowchart is Needed.
• If the logic of a given problem is unclear, the whole flowchart becomes tangled/Complicated.
• Flowchart  cannot be directly converted into program code, you will have to Code, As Flowchart is the Graphical representation of Logical Sequence

### Rules:

Drawing a Flowchart is Easy But time Consuming,

The Following points should be Considered before

Drawing the actual Flowchart.

• One should Concentrate on making of main logic of the problem
• After you’ve finalized the main logic of the problem, focus on the branches and loops
• Flowchart has start and stop points included.
• one Should Avoid Using programming language in flowchart
• It should Be made easily understandable.
• The Flow-lines should not cross each other.
• To indicate the direction of flow of control in the problem arrow heads should be used. The general direction of flow-line in flowchart is from top to bottom and from left to right.

### Symbols used in flowchart:

• Terminal Box
• Input/Output Box
• Processing Box
• Decision Box
• Connector
• Flow-lines

#Terminal Box

Oval shaped box known as Terminal box is used to specify The start and End of Flowchart.

#Input-output Box

Parallelogram Shaped Input-output box is used to Show the Input/Output associated/related steps in a Flowchart.

#Processing Box.

Regular Shaped Box is Used to Show/Point the Steps Like Calculations and Many more In a Flowchart.

#Flow Lines

Arrows used to Connect Geometrical Symbols in Flowchart are known as Flow Lines, The Direction of the Flow lines Points/Shows The Steps The Computer will Execute The Instructions To Solve The Problem.

#Decision Box

Decision box is used to Show the Steps involving Comparison and Decision Making Steps. Decision box has one entry and Two Exit points And The Points are for True or False.You can Observe that One Arrow/Flow Lines Goes into The Box and Two Arrows Come Out to Point two Alternate Actions to be performed that is based on The Result/Outcome of the Making of Decision.

#Connector

Connectors points the continuation of Flow on Another Page, where a corresponding symbol is Located

## What is Pseudocode?

Many Programs are written , built or you can say Developed

using java, c , c++, python etc.Programming Languages have A Fixed Syntax To Stick While Writing lines of code.

But Pseudocode  is not a Programming Language, it is an informal language to describe or express the flow of a program.

Pseudocode cannot be Compiled as a program, it should be Converted according to the Specific  Programming Language. It is Written By the Combination of English,

Mathematical notations or expressions, Capitalized Keywords Like BEGIN,END, ELSE-IF, PRINT And So on.

Learn to Write Pseudocode From Here.