Everything a teacher needs to deliver this lesson — pick your grade's script below once you've read the background.
By the end of this lesson, students should be able to:
You do not need a programming background to teach this lesson well — the core idea is one most adults already use every day without naming it. An algorithm is simply an ordered set of steps for getting something done. A recipe is an algorithm. Directions to a friend's house are an algorithm. The sequence you use to tie a shoelace is an algorithm you learned so long ago that it now runs on autopilot. None of these require a computer — "algorithm" describes the instructions, not the machine that might carry them out.
What makes algorithms worth a whole lesson is what happens when the instructions have to be followed by something with zero common sense: a computer, or in this lesson's central example, a robot being taught to make a sandwich. A person told "put peanut butter on the bread" will automatically open the jar first, because that step is obvious to a human. A computer will not fill in that gap. It executes exactly the steps it was given, in exactly the order it was given them — nothing more, nothing assumed. If "open the jar" is missing from the instructions, the honest result is a robot arm pressing a knife against a closed lid, not an error message saying "did you forget something?" This is the single idea the whole lesson is built to make visible: computers need instructions that are complete (no missing steps), specific (no ambiguous verbs like "handle" or "prepare"), and correctly ordered (the same steps in the wrong sequence produce a different, usually broken, result).
Once the sandwich example lands, the lesson widens out to show that algorithms are not a niche computer-science topic — they're the invisible machinery behind things students already use daily. A search engine is an algorithm for deciding which of billions of web pages to show first. A game's enemy character follows an algorithm like "if the player is near, chase; if health is low, retreat." A social media feed uses an algorithm to decide which post appears at the top of your screen. A traffic light runs a much simpler algorithm: stay green for 30 seconds, yellow for 5, red for 30, then repeat forever. All four are algorithms. Only some of them are AI.
For older students, this lesson is also a natural entry point into computer science vocabulary they may encounter later: a program is one way of writing an algorithm down in a language a computer can execute; different algorithms that solve the same problem can be compared by how much time or memory they use as the amount of data grows (this is what "efficiency" means to a computer scientist); and some famous named algorithms — Google's PageRank for ranking search results, or Dijkstra's algorithm for finding the shortest route on a map — are things your Hacker- and Architect-mode students will meet explicitly in their version of this lesson. You do not need to know these in depth to teach the 5–14 age bands; the app's own delivery script carries the technical weight for the 15–18 band.
One thing worth knowing before you teach it: this is lesson 1.2.2, the sixth lesson in World 1 ("What Is AI?"), so students arrive already knowing that computers process input into output and that they store information as 1s and 0s. Algorithms is the natural next step in that sequence — it answers "okay, but how does a computer know what to do with the input?" You don't need to re-teach the earlier lessons, but a one-line callback ("remember, computers take input, do something to it, and produce output — today we're looking at the 'do something' part") helps students place this lesson inside the bigger picture rather than as a standalone topic.
This lesson needs almost nothing beyond what students already bring to class:
No printing, no accounts, and no setup beyond opening the lesson — the whole activity runs from the hook and learn screens already built into the app.