0% found this document useful (0 votes)
9 views9 pages

Algorithm

An algorithm is a set of step-by-step instructions used to complete a specific task, with examples including making a grilled cheese sandwich and a cup of coffee. Algorithms can be represented through flow charts or pseudo code, and they are essential in computer science for programming and decision-making in applications like Facebook and TikTok. There is no standard method for representing algorithms, but these common forms aid in problem-solving.

Uploaded by

Jolly Jumbo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views9 pages

Algorithm

An algorithm is a set of step-by-step instructions used to complete a specific task, with examples including making a grilled cheese sandwich and a cup of coffee. Algorithms can be represented through flow charts or pseudo code, and they are essential in computer science for programming and decision-making in applications like Facebook and TikTok. There is no standard method for representing algorithms, but these common forms aid in problem-solving.

Uploaded by

Jolly Jumbo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like