Algorithm Design & Representation (Flowchart)
Algorithm Design & Representation (Flowchart)
REPRESENTATION
(FLOWCHART)
OBJECTIVES:
At the end of the lesson, the students should be able to:
• 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
FINITENESS - All cases must terminate after conditions are met or after a
finite number of steps.
START
• Flow of algorithm can be IS YES
represented using a flowchart. RESULT
<5?
“GOOD”
NO
ENTER A NUMBER
• Easier to understand because of AS INT1
GET INT1
its graphical nature. “VERY
GOOD” END
ENTER A NUMBER
AS INT2
GET INT2