Algorithms
Algorithms
203 ÷ 9
What is an Algorithm?
2. Output specified
3. Definiteness
4. Effectiveness
5. Finiteness
6. Independent
Let’s practice!
From our Google Classroom, access the assignment post titled Exercise 1. Use the
attached slide template and design a flowchart on how to cook rice.
Week 1: Day 2
There are four common ways of
writing an Algorithm in CS
● Natural Language
● Pseudocode
● Flowchart
● Programming code
How to write an Algorithm?
1. Natural Language – simply writing the algorithm in plain language. It
observes proper grammar and spelling. Typically understood only
among persons. Recipes for cooking are examples of natural
language algorithm.
source : https://www.codeavengers.com/notes/planning/flowcharts
Flowcharting Guidelines
● The start/end(Terminator) symbols must be the first and last symbols that
the reader should see. Depending on your layout, the start symbol should
be the topmost/leftmost part of the flowchart area, and end symbol must
the bottommost/rightmost area.
● Only one start and one end symbol should appear in a flowchart.
START END
Flowcharting Guidelines
● Avoid using lines without arrowheads. The arrowhead points the reader to
the next step.
Incoming line/process
Access the Assignment post for HOA 1. Use the attached slide template and design
a flowchart for the following scenarios:
Turn in the slides of your 2 flowcharts through the Assignment post in our Google
Classroom not later than 4:00 P.M. today.
Do you think a
robot can
understand
your
instructions?
“I took a computer-science
course to fill a prerequisite
at Stanford, and I realized
that every day was a new
problem, and every day you
got to think about how to
solve something new, how
to reason through
something new, how to
develop an algorithm to
solve for something you
hadn't worked on before.”
Marissa Mayer,
Google’s first female engineer
RESOURCES
http://openbookproject.net/thinkcs/python/english3e/way_of_the_program.
html
https://www.programiz.com/article/flowchart-programming