ALGORITHM
LIST OF CONTENT
PRESENTATION
01 WHAT IS ALGORITHM?
02 ALGORITHM EXAMPLE OF EVERYDAY LIFE
03 ALGORITHM REPRESENTATION
04 HOW DO YOU WRITE A CODE ALGORITHM?
WHAT IS ALGORITHM?
Algorithm is a set of steps used
to complete a specific task.
An algorithm is a set of step by
step instructions that describe
how to perform a task.
LETS GET STARTED
ALGORITHM EXAMPLE
OF EVERYDAY LIFE
Making a grilled cheese sandwich
Step 1- Acquire Bread
Step 2- Apply cheese
Step 3- Grill!
MAKING A CUP OF COFFEE
fill a cup of mug almost to
the top with the boil water
Fill Kettle with water and boil
Add milk and sugar
Take out a mug
put a tea spoon of coffee
stir with the spoon for mix
into a mug
ALGORITHM REPRESENTATION
There is no standard method of algorithm
representation exist, however there are commonly
used ;
FLOW CHART
graphical representation of an orderly step
by step solution to a problem.
PSEUDO CODE
Textual representation in English like to
present the solution to a problem.
WHERE ARE ALGORITHMS USED IN COMPUTER SCIENCE?
Algorithms are the building blocks for
programming. Today, algorithms allow
computers, smartphones, and websites to
function and to make decisions. As just one
small example, if you use apps such as
Facebook and TikTok, the algorithms on
those platforms help chose the content that
gets shown to you.