*It is the step-by-step procedure to solve a problem
Algorithm
*It is a set of instructions.
* Cookbook = cooking process + ingredients
ALGORITHM
TYPE OF Algorithm
*It is affected by * Time = speed * Space = memory
Algorithm
*It can be designated using:
* Flowchart – visual representation
* Pseudocode – text representation
ALGORITHM
It is the visual representation of the step-by-step
solution.
Flowchart
*All boxes are connected with arrows
FLOWCHART
*Entry point is on top; and end point is on bottom
FLOWCHART
*The decision symbol has two exit points.
FLOWCHART
*It is the text representation of the step-by-step
solution
PSEUDOCODE
Forms: short English phrases, compact
mathematical notations, and basic programming
syntax.
PSEUDOCODE
Pseudocode
Data Types
*Integer *Float * Characters *Boolean
Pseudocode
Structure
*Sequential
* Decision (and Nested Decision)
*Iterative