[go: up one dir, main page]

0% found this document useful (0 votes)
23 views5 pages

Algorithms and Flowcharts

An algorithm is a step-by-step procedure for solving a problem, commonly represented through pseudocode or flowcharts. A good algorithm should have clearly defined inputs and outputs, be unambiguous, and be effective across different programming languages. Flowcharts visually represent algorithms, illustrating the sequence of steps and logic involved in a process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views5 pages

Algorithms and Flowcharts

An algorithm is a step-by-step procedure for solving a problem, commonly represented through pseudocode or flowcharts. A good algorithm should have clearly defined inputs and outputs, be unambiguous, and be effective across different programming languages. Flowcharts visually represent algorithms, illustrating the sequence of steps and logic involved in a process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

ALGORITHMS AND

FLOWCHARTS
Introduction to beginners
WHAT IS AN ALGORITHM?
• An algorithm is a procedure or formula for solving a problem. It can be
defined as a set of well-defined step by step instruction to solve a
program. In computer science, an algorithm usually means a small
procedure that solves a specific problem. Algorithms are widely used
throughout all the areas of IT. There are two common methods to
represent algorithm designs; pseudocode and flowcharts.
QUALITIES OF A
GOOD ALGORITHM
 Inputs and outputs should be
defined exactly
 Every step in an algorithm should
be clear, precise and unambiguous.
 It should be effective among many
different ways to solve problem.
 It should not have computer code.
Instead, an algorithm must be
written in such a way that, it can
be used in similar programming
languages.
EXAMPLES OF ALGORITHM
1) Making a Cup of Tea: 2) Area Of Circle:
Step 1) Start Step 1) Start
Step 2) Put the teabag in a cup
Step 2) Declare variables r and
Step 3) Fill the kettle with water
A
Step 4) Boil the water in the kettle
Step 3) Read values in r
Step 5) Pour some of the boil water
into the cup Step 4) Applying formula (A =
Step 6) Add milk to the cup (3.142)*r*r)
Step 7) Add sugar to the cup Step 5) Display A
Step 8) Stir the tea Step 6) Stop
Step 9) Drink the tea
Step 10) Stop
WHAT IS A FLOWCHART?
• A Flowchart is a pictorial representation of an algorithm, workflow or
process, showing the steps as boxes of various kinds, and their order by
connecting them with arrows. It is used to show the sequence of steps
and logic of solution to a given problem. Flowcharts are used in analyzing,
designing or managing a process or program in various fields.

You might also like