What is an algorithm?

23,044 views 33 slides Feb 06, 2019
Slide 1
Slide 1 of 33
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33

About This Presentation

Lecture notes for helping students learn what an algorithm is and giving them practice in using what they learned


Slide Content

What is an algorithm? Created by Angela DeHart, 2/2019,

Algorithm (noun): A set of steps to accomplish a task

An algorithm describes the step by step action to solve a problem .

An  algorithm  has a well defined sequence of steps, it gives you an output, and it will eventually terminate. 1 1 2 2 3 3 4 4 5 5 6 6

An algorithm is a self-contained step-by-step set of operations to be performed to solve a specific problem or a class of problems. For example, an algorithm for driving to a friend's house could be: Find your keys Walk out of the house Close the door Open the car door Get into the car Put the key into the ignition, etc…..  

An  algorithm  is a precise step-by-step plan for a computational procedure that possibly begins with an input value and yields an output value in a finite number of steps in order to solve a particular problem  

An algorithm is a self-contained step-by-step set of operations to be performed to solve a specific problem or a class of problems. A computer program is a sequence of instructions that comply the rules of a specific programming language , written to perform a specified task with a computer.

What is your algorithm for getting to this class?

What is your algorithm for getting up on Saturdays?

What is your algorithm for brushing your teeth?

What is your algorithm for eating breakfast?

Practice!

What is your algorithm for getting up in the morning? Let’s make our first algorithm! On an index card write the response to:

In  Australian  Aboriginal society , a   Walkabout  is a rite of passage during which males undergo a journey during adolescence, typically ages 10 to 16, and live in the wilderness for a period as long as six months to make the spiritual and traditional transition into manhood. Walkabout Exercise

You could teach another person the meaning of the word You can create an example You can use the concept to solve a problem Walkabout Exercise The objective of our walkabout is for you to learn what algorithm is so well that:

Place your index card in our hand Go to the designated area Exchange index cards with the person in front of you until asked to stop Read the index card Walk-about Exercise

I get it! I can help someone else! I do not understand, yet. I need help I kind of get it. I need more practice 1 ---------- 3 ---------- 5 5 Point Feedback Scale

Using our 5 point scale how well do you feel like you understand what an algorithm is?

More practice!

Create a team of 3

Read over your team’s problem. Then decide who is going to be… Let’s make our second algorithm! Hands-on Activity

The Cookbook Author Person #2: The Chef Person #1: Restaurant guest Person #3:

Restaurant guest Person #3: Place your order Write down your observations of the process Access the success of your meal based on the order you placed A perfect meal! – 20% tip An acceptable meal! – 10% tip Dissatisfied customer! – 0% tip

The Cookbook Author Person #2: Write down the algorithm for the Chef to follow in order to create the meal for the restaurant guest Once you have completed your meal you may not make any changes to your algorithm

The Chef Person #1: Make the order using the algorithm created by the Cookbook Author You may not make any changes to the algorithm If you are not able to continue, you must stop and inform the Cookbook Author of your status

I get it! I can help someone else! I do not understand, yet. I need help I kind of get it. I need more practice 1 ---------- 3 ---------- 5 5 Point Feedback Scale

Using our 5 point scale how well do you feel like you understand what an algorithm is?

More practice!

https://youtu.be/6hfOvs8pY1k

I get it! I can help someone else! I do not understand, yet. I need help I kind of get it. I need more practice 1 ---------- 3 ---------- 5 5 Point Feedback Scale

Using our 5 point scale how well do you feel like you understand what an algorithm is?

Funwork!

https:// www.khanacademy.org/computing/computer-science/algorithms/intro-to-algorithms/v/what-are-algorithms