Algorithms

WHAT IS AN ALGORITHM?

An algorithm

  • Is a set of steps to complete a task.
    • The order of the steps is important!
  • Should be easy to understand by the user.
list of 3 steps

In this video, watch as this dad teaches his kids a lesson about why algorithms must be exacteasy to understand, and in the right order.

WHAT DO YOU THINK?

peanut butter and jelly sandwich
  • What was the algorithm the kids were writing?
  • Why did their first attempts fail?
  • How did they improve their algorithms?

ALGORITHMS MUST BE EXACT!

Computers cannot make decisions on their own!
 
Just because you understand what you are saying, does not mean the computer does!

ALGORITHMS IN CODING AND AI

Computers don’t understand human languages.
 
Special programming languages translate human steps so the computer can understand.

ACTIVITY: DRAWING SHAPES WITH ALGORITHMS

Follow the directions in the worksheet

Stop and Discuss

How did the activity go?

  • Did your partner draw the shape correctly?
  • What worked?
  • What didn’t work?
two girls talking

If your partner didn’t get it right, try fixing your algorithm so they can follow the steps!

TIPS TO REMEMBER

  • Be exact!
  • Put things in the right order, called a sequence
  • The computer can only do what you tell it to do!