Lesson 2 6 min

Rules or patterns?

Tell the difference between a rule someone wrote and a pattern learned from examples.

Learning goal

I can tell how a helper got its sorting clue.

How it works

A fixed rule tells a tool just what to do. Another tool can study examples and learn a clue. A clue that works on the first cards might fail on a new one.

Think of it like this

Think of lining up for recess. Your teacher can say, “Line up by the door.” You might also watch classmates and guess where to stand. A computer works with the clues it was given. You can look around and ask a question.

Worked example

At Acorn Club, Rule Helper gets the words “Put a card in A if you see a star.” Pattern Helper sees a red star in A and a blue circle in B. Now both get a blue star. Rule Helper uses A because it sees a star. Pattern Helper could use B if it learned the colour clue.

What to remember

Ask if someone wrote the rule or if the tool learned from examples.

  1. Written rulePut anything with a star in Tray A.
  2. Learned patternStudy sorted cards and guess where a new one goes.
Both helpers can put a star in Tray A. Look at where each helper got its clue.

Key words

Fixed rule
An instruction people write in advance. For example, if a card has a star, put it in the star tray.
Model
A computer-made representation of patterns. A model can use those patterns to make a prediction or generate something.
More AI Basics lessons

Activity

Make two trays

Materials Paper, a pencil, and two spaces on a table.

  1. Draw a star, a circle, and a star with dots. Make two trays called A and B.
  2. Follow this written rule: if there is a star, use A. Use B for the rest.
  3. Start over. Show a partner the first star in A and the circle in B without saying the rule. Ask where the dotted star might go and why.

Talk it through Draw a dotted circle next. A guess based on dots could break the written rule. What other example would help?

Quick check

1. Which helper has a fixed rule?
Answer and explanation

One given the words “stars go in A”. Someone wrote the sorting step in advance.

2. Two helpers sort one card the same way. What tells you how they did it?
Answer and explanation

Whether they got a rule or examples. The same answer can come from following a written rule or learning a clue from examples.