0% found this document useful (0 votes)
60 views7 pages

Algorithm Design & Representation (Flowchart)

The document discusses algorithm design and representation using flowcharts. It defines an algorithm as a well-defined computational procedure that takes inputs and produces outputs. The key characteristics of algorithms are that they have inputs, outputs, defined steps, will terminate, and the steps should be basic. Flowcharts are then introduced as a way to visually represent algorithms using basic symbols like shapes, arrows, and forks to show the logic and steps. An example flowchart is then shown for a simple algorithm to add two numbers and classify the result.
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)
60 views7 pages

Algorithm Design & Representation (Flowchart)

The document discusses algorithm design and representation using flowcharts. It defines an algorithm as a well-defined computational procedure that takes inputs and produces outputs. The key characteristics of algorithms are that they have inputs, outputs, defined steps, will terminate, and the steps should be basic. Flowcharts are then introduced as a way to visually represent algorithms using basic symbols like shapes, arrows, and forks to show the logic and steps. An example flowchart is then shown for a simple algorithm to add two numbers and classify the result.
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/ 7

ALGORITHM DESIGN &

REPRESENTATION
(FLOWCHART)
OBJECTIVES:
At the end of the lesson, the students should be able to:

• Understand what algorithm truly is, its definition and


characteristics.

• Know about flowchart and its symbols and apply it in problem


solving.
ALGORITHM – DEFINITION

“Is any well-defined computational procedure that takes


some value, or set of values, as input and produces
some value, or set of values, as output. An algorithm is
thus a sequence of computational steps that transform
the input into the output.” (Thomas H. Cormen et al.)
ALGORITHM & IT’S CHARACTERISTICS

INPUT - Accepts zero or more user resources externally.

OUTPUT - Must produce at least one result of the procedure.

DEFINITENESS - Each instruction must be clear &


unambiguous.

FINITENESS - All cases must terminate after conditions are


met or after a finite number of steps.

EFFECTIVENESS - Every instruction must be very basic so that


it can be carried out and must be feasible to perform on any
machine.
FLOWCHART

A flowchart is a type of diagram that represents an algorithm or


process. Showing the steps as shapes of various kinds and
their order by connecting them with arrows.
BASIC FLOWCHART SYMBOLS

Oval Arrows Parallelogr Rectangle Diamond


Represents a Direction of am Denotes a Indicates
start or end logic flow in Used as process to that a
point a program either input be carried decision is to
or output out be made.
operation
ALGORITHM PRESENTED AS A FLOWCHART

STAR
• Flow of algorithm can be T IS
YES
RESU “GOOD
represented using a LT < ”
5?
flowchart.
ENTER A NO
NUMBER AS
INT1
• Easier to understand GET INT1 “VERY
GOOD” END
because of its graphical
nature. ENTER A
NUMBER AS
INT2
GET INT2

RESULT AS INT1 +
INT2

You might also like