Flowchart vs Algorithm | Difference between Flowchart and Algorithm with Example

Algorithms

An algorithm is an efficient procedure for solving a problem during a finite
number of steps. It are often defined as “step by step representation of the answer of any given problem .
  • The procedure has to be based on definite reasoning and logic to obtain a result.
  • A well- designed algorithm will always provide an answer.

If algorithm is correct then solution provided by the computer are going to be correct.If algorithm isn't correct, this solution provided by the humans could also be still correct but not provided by the computers.


Flowchart

Flowchart is an old design tool which is still in use. It provides better understanding of existing and prepared methods and procedures and systems. A flowcharts is a pictorial representation of logic required to accomplish a task. It includes all necessary steps of a program. it is called flow chart because it charts the flow of a program. It is a symbolic representation of each input, output and processing step. 

Besides, being a good method of writing down the algorithm, it is also a part of program documentation and helps in understanding, debugging and maintaining programs. 

  • Flowchart is a pictorial/diagrammatic.
  • Representation of the solution of a given problem.
  • It is a design tools which is basically used before writing the actual program.

 

It is graphic presentation using symbols to show the step-by-step sequence of operations, activities, or procedures. It is used in computer system analysis, activity analysis, and in general program sequence representations. 

 

Difference Between Algorithm and Flowchart


Algorithm Example

Write an algorithm to add two numbers.
Step 1- Start
Step 2- Read the value of n1 and n2.
Step 3- Sum=n1+n2.
Step 4- Display sum.
Step 5- Stop.

Flowchart Example

Flowchart to add two numbers.






Post a Comment

0 Comments