002-Flow-Chart-and-Algorithm
002-Flow-Chart-and-Algorithm
Flowcharts
Enrico L. Nacua
Faculty, Information Technology Department
College of Information Sciences and Computing
Understanding Algorithm
• Within the context of business logic, the set of rules or statements on
how the application implements the business rules, and how the
application should behave between the user and database must be
well define.
• Algorithm must be build to describe the execution of the business
logic.
What is Algorithm?
• A set of well-defined rules or procedures for solving a problem in a
finite number of steps, or providing an output from a specific set of
inputs. Usually implemented as a computer program.
• A finite set of well-defined rules for the solution of a problem in a
finite number of steps.
• instructions for how to solve a problem. [4]
Understanding Algorithm
• To make a computer do anything, you have to write a computer
program. To write a computer program, you have to tell the computer,
step by step, exactly what you want it to do. The computer then
"executes" the program, following each step sequentially, to
accomplish the end goal. [5]
• When you are telling the computer what to do, you also get to choose
how it's going to do it. That's where computer algorithms come in.
The algorithm is the basic technique used to get the job done
Understanding Algorithm
• Algorithm is very easy to understand but building an algorithm for a
given problem is another thing.
Understanding Algorithm
• Three (3) things to consider in creating an algorithm.
• Input, Process, Output
Data Information
BENEFITS LIMITATIONS
• Communication: Flowcharts are better way • Complex logic: Sometimes, the
of communicating the logic of a program to program logic is quite complicated.
all concerned. In that case, flowchart becomes
• Effective analysis: With the help of
complex and clumsy.
flowchart, problem can be analyzed in more • Modifications: If modifications are
effective way. required the flowchart may require
re-drawing completely.
• Proper documentation: Program flowcharts
serve as a good program documentation, • Reproduction: As the flowchart
which is needed for various purposes. symbols cannot be typed,
reproduction of flowchart becomes a
• Proper Debugging: The flowchart helps in problem.
debugging process.
Flowchart Symbols
• Microsoft Office Insert Shapes
Flowchart Symbols
Terminator
• Terminators show the start and
stop points in a process. When
used as a Start symbol,
terminators depict a trigger
action that sets the process
flow into motion [3].
• Used with the terms “Start”
and “End”.
Flowchart Symbols
Data
• Input or Output operation.
• Specify if its an “Input” or
“Output”.
Flowchart Symbols
Process
• Show a Process or action step.
This is the most common
symbol in both process
flowcharts and process maps
[3].
Flowchart Symbols
Decision
• Indicates a question or branch
in the process flow. Typically, a
Decision flowchart shape is
used when there are 2 options.
• Making decisions and
branching. Its a two-way
decision process [3].
Flowchart Symbols
Flow Line
• Flow line connectors show the
direction that the process flows
[3].
Flowchart Symbols
Connector
• This symbol is typically small
and is used as a Connector to
show a jump from one point in
the process flow to another.
Connectors are usually labeled
with capital letters (A, B, C,..) to
show matching jump points.
They are handy for avoiding
flow lines that cross other
shapes and flow lines [3].
Guidelines in Flowcharting
• The usual direction of the flow of a procedure or system is from left to
right or top to bottom.
Guidelines in Flowcharting
• Only one flow line should come out from a process symbol.
Guidelines in Flowcharting
• Only one flow line should enter a decision symbol, but only two flow
lines should leave the decision symbol.
Guidelines in Flowcharting
• Only one flow line is used in conjunction with terminal symbol.
Guidelines in Flowcharting
• If the flowchart becomes
complex, it is better to use
connector symbols to reduce
the number of flow lines.
Avoid the intersection of
flow lines if you want to
make it more effective and
better way of
communication.
Examples of Flowchart
• Low-level implementation of flowchart
Start
Output V
Stop
Examples of Flowchart
• Low-level implementation of flowchart
Start
Output Pound
Stop
Examples of Flowchart
Start
• Low-level implementation of flowchart
Input A