0% found this document useful (0 votes)
45 views

Algorithm and Flowchart Revision

This document discusses algorithms and flowcharts. It defines an algorithm as a set of steps to complete a specific task, and notes that algorithms allow computers and technology to function. A flowchart is then defined as a pictorial representation of the sequential steps in a process. Examples of algorithms and flowcharts are provided, and the key differences between the two are outlined in a comparison chart.

Uploaded by

Iraj Danish
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Algorithm and Flowchart Revision

This document discusses algorithms and flowcharts. It defines an algorithm as a set of steps to complete a specific task, and notes that algorithms allow computers and technology to function. A flowchart is then defined as a pictorial representation of the sequential steps in a process. Examples of algorithms and flowcharts are provided, and the key differences between the two are outlined in a comparison chart.

Uploaded by

Iraj Danish
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

DAWOOD PUBLIC SCHOOL

CLASS VII

Computer Science ALL SECTION

Ch: Algorithm and Flowchart


Topic: Revision
ALGORITHM

• An algorithm is simply a set of steps used to complete a


specific task.
• They're the building blocks for programming, and they allow
things like computers, smartphones, and websites to function
and make decisions.
• In addition to being used by technology, a lot of things we do on
a daily basis are similar to algorithms
ALGORITHM
• Process or set of rules to be
followed in calculations or other
problem-solving operations,
especially by a computer.
• For the purpose of computing,
algorithms are written in pseudo
code, flowcharts, or programming
languages. .
EXAMPLE
• To create brownies from a box mix, you would follow the three to
five step process written on the back of the box
• Instructions to solve papers
• Telling address
LET'S SAY YOU WANT TO MAKE
SOME SPAGHETTI.
• First, you'll need to boil a pot of water. Once it's boiling, you
then add the spaghetti and cook it for a set amount of time, stirring
occasionally. Once it's finished, you drain the water, then it's ready
to be served with a sauce of your choice.
CHARACTERISTICS OF AN ALGORITHM

• Not all procedures can be called an algorithm. An algorithm


should have the following characteristics −
• Unambiguous 
• Input
• Output 
• Finiteness 
• Independent 
• Feasible
ADVANTAGES AND DISADVANTAGES

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.

It is a pictorial representation of a process. It is step wise analysis of the work to be done.

Solution is shown in graphical format. Solution is shown in non computer language like English.

It is easy to make flowchart. It is difficult to write algorithm as compared to flowchart.

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

You might also like