Algorithm and Flowchart Revision
Algorithm and Flowchart Revision
CLASS VII
Advantages Disadvantages
• Easy to write. • Difficult to debug.
• Human readable techniques • Difficult to show branching
to understand logic. and looping.
• Algorithms for big problems • Ambiguity
can be written with moderate
efforts.
• Less time consuming
PROBLEM − DESIGN AN
ALGORITHM TO ADD
TWO NUMBERS AND
DISPLAY THE RESULT.
Step 1 − Start
Step 2 − get values of a & b
Step 3 − c ← a + b
Step 4 − display c
Step 5 − Stop
FLOWCHART
• A flowchart is a picture of the separate
steps of a process in sequential order.
• Flow charts are simple diagrams that map
out a process, so that you can easily
communicate it to other people.
• To draw a flow chart, identify the tasks
and decisions that you make during a
process, and write them down in order.
Then, arrange these steps in the flow chart
format, using the appropriate symbols.
WHEN TO USE FLOWCHART
• To develop understanding of how a process is done
• To communicate to others how a process is done
• When better communication is needed between people involved
with the same process
• To document a process
• When planning a project
SYMBOLS OF FLOWCHART
Input/output
Flow line
ADVANTAGES AND DISADVANTAGES
Advantages Disadvantages
• Easy to draw. • Time-consuming.
• Easy to understand the logic. • Difficult to modify.
• Easy to show branching and • Very difficult to draw a
looping. flowchart for big or complex
problems.
EXAMPLES
COMPARISON CHART
Flowchart Algorithm
Block by block information diagram representing the Step by step instruction representing the process of any
data flow. solution.
Solution is shown in graphical format. Solution is shown in non computer language like English.
Easy to show branching and looping. Difficult to show branching and looping
Flowchart for big problem is impractical Algorithm can be written for any problem