Feynman
← All modules
CS221Representation & ReasoningCore55 min

Artificial Intelligence: Principles & Techniques

The map of all of AI, search, logic, learning, and uncertainty, and how the pieces fit.

AI tutor is turned off for this class

Use the CS221 lectures, notes, and assignments below to keep learning.

Big Idea

Representation & Reasoning

Grade bands

K-2 · 3-5 · 6-8 · 9-12

AI literacy pillar

How AI works · Ethics

View on the ladder →

Lesson overview

The map of all of AI, search, logic, learning, and uncertainty, and how the pieces fit. This module climbs from an everyday intuition to the real mechanism, then names the Stanford course it descends from.

Teacher script · ~45 min

  1. 0–5

    Hook

    When a computer plays checkers or suggests a route home, it isn't thinking like you. It is trying lots of possibilities very fast and keeping the ones that score well. That's the whole trick: generate options, score them, pick the best.

  2. 5–15

    Explore

    Students do the activity in pairs: Solve a maze twice: once exploring blindly, once always stepping toward the goal. Count the steps. The smarter rule wins: that's a 'heuristic.'

  3. 15–30

    Explain

    AI has a small toolbox. SEARCH explores possible futures (chess). CONSTRAINTS rule out impossible combinations (Sudoku, scheduling). LEARNING finds patterns in data (spam filters). PROBABILITY reasons when you can't be sure (medical diagnosis). Most real systems bolt several of these together.

  4. 30–40

    Connect to the summit

    Show students this is the real thing professionals build: CS221, the real thing. The map of all of AI, search, logic, learning, and uncertainty, and how the pieces fit.

  5. 40–45

    Check

    Run the formative check below. Anyone who can explain a key term in their own words has it.

Student activity

Solve a maze twice: once exploring blindly, once always stepping toward the goal. Count the steps. The smarter rule wins: that's a 'heuristic.'

Slides

1Title: Artificial Intelligence: Principles & Techniques
2Hook: AI is just good guessing with rules
3Do it: Find your way out of a maze
4How it works: Four ways to be smart
5Key idea: State space
6Key idea: Heuristic
7Key idea: Markov Decision Process
8From the summit: CS221 at Stanford

Formative check

  • 1.In your own words, what is "State space"? (Looking for: Every situation the problem could possibly be in, and the moves between them.)
  • 2.In your own words, what is "Heuristic"? (Looking for: A cheap guess at how close you are to the goal, used to search smarter.)
  • 3.In your own words, what is "Markov Decision Process"? (Looking for: A formal way to describe choosing actions over time when outcomes are uncertain.)

Carry-away concepts

State space
Every situation the problem could possibly be in, and the moves between them.
Heuristic
A cheap guess at how close you are to the goal, used to search smarter.
Markov Decision Process
A formal way to describe choosing actions over time when outcomes are uncertain.
Modeling
Turning a vague real problem into a precise math problem you can actually solve.

From the summit · the Stanford source

Graduate survey: you implement search, constraint solvers, Markov decision processes, game-playing agents, and Bayesian networks, and argue about which tool fits which problem.

This module descends from CS221 at Stanford. Students who climb the full ladder arrive here.