Comparison of Flowchart & Algorithm

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 7

Comparison of

Flowchart & Algorithm


By
Sir Fahad Rasheed
Contact: +92 306 4264027
Differences of Flowchart & Algorithm
( First Three Points )

Flowchart Algorithm
• Block by block information • Step by step instruction representing
diagram representing the data flow. the process of any solution.
• It is a pictorial representation of a • It is a stepwise analysis of the work
process. to be done.
• The solution is shown in a • The solution is shown in a non-
graphical format. computer language like English.
Differences of Flowchart & Algorithm
( Next Points )

• Easy to understand as compared to the • It is somewhat difficult to understand.


algorithm.
• Easy to show branching and looping.
• Difficult to show branching and looping.
• Flowchart for a big problem is • The algorithm can be written for any
impractical. problem.
• Difficult to debug errors. • Easy to debug errors.
• It is easy to make a flowchart. • It is difficult to write an algorithm as
compared to a flowchart.
Definition of Flowchart
• A flowchart is a pictorial or graphical representation of a
process. Each step in the process is represented by a different
symbol and contains a short description of the process step. The
flow chart symbols are linked together with arrows showing the
process flow direction. This pictorial representation can give a
step-by-step solution to the given problem.
Pons and Cons of Flowchart
• Easy to draw. • Time-consuming.
• Easy to understand the logic. • Difficult to modify.
• Easy to identify mistakes by the • Very difficult to draw a flowchart
non-computer person. for big or complex problems.
• Easy to show branching and
looping.
Definition of Algorithm
• An Algorithm is a finite sequence of well-defined steps for solving a
problem in a systematic manner. It is written in natural languages like
English.
Pons and Cons of Algorithm
• Easy to write. • Difficult to debug.
• Human readable techniques to • Difficult to show branching and
understand the logic. looping.
• Algorithms for big problems can • Jumping (goto) makes it hard to
be written with moderate efforts. trace some problems.

You might also like