Class 3 · CBSE AI · Strand C — Algorithms are Recipes

When rules aren't enough — why AI learns from examples

Some tasks are too complex to write rules for — so AI learns from examples instead. The bridge to machine learning, for Class 3.

What this concept actually says

  • Some tasks are too complex to solve with a written set of rules — there are too many possibilities to list
  • When rules aren't enough, machines can learn from examples instead — this is the idea behind machine learning
  • The shift from rule-based algorithms to learning from examples is the key step toward understanding AI

An analogy your child will recognise

Learning to ride a bicycle

No one can give you a complete written algorithm for balancing on a bicycle. You just have to practice until your body learns. Machine learning is similar — instead of giving a computer exact rules for recognising a cat, you show it thousands of cat photos until it learns on its own what makes a cat a cat.

A village elder identifying a ripe mango

An experienced mango seller at the bazaar can tell a ripe Alphonso from an unripe one just by looking and pressing. She can't write down every rule she uses — she learned it over 30 years of handling thousands of mangoes. A computer can learn the same way: from thousands of examples, not from a written rule list.

Common misconceptions to watch for

  • A clever enough programmer can always write rules to solve any problem
  • Machine learning means the computer is actually thinking and understanding like a human

Key facts in one breath

  • Some tasks — like recognising faces, understanding speech, or identifying animals in photos — are too complex for rule-based algorithms
  • Machine learning is a different approach: instead of writing rules, you show the machine thousands of examples and let it figure out the pattern
  • The transition from 'follow rules' to 'learn from examples' is what makes modern AI powerful
  • Both approaches are still algorithms — the difference is who writes the rules: the programmer, or the learning process itself

How Dhee Learning teaches this — the 3-stage question loop

Every Dhee Learning session for this concept follows three stages. We share the questions Dhee actually asks, so you can hear what a session sounds like.

Stage 1 — Surface

Could you write an algorithm to tell a computer how to recognise your grandmother's face? Go ahead and try — what steps would you write?

Rote answer

"Child lists physical features without recognising that these rules would also match many other faces"

Understood

"Child attempts the rules, then realises that any rule they write (e.g., 'has brown eyes') would match thousands of other people too — the rules alone can't uniquely identify one face"

Stage 2 — Reasoning

You know immediately when you see your grandmother that it's her — but you can't write down exactly how you know. So how do you think you learned to recognise her face?

Follow-up Dhee may use: If a computer wanted to learn to recognise your grandmother's face, what would it need — a list of rules, or thousands of photos? Why?

Stage 3 — Application

Here are two tasks: (A) calculating the price total of items in a shopping cart; (B) deciding whether a photo shows a dog or a cat. Which task needs a rule-based algorithm, and which needs learning from examples? Why?

Misconception Dhee watches for: Child thinks all computer tasks must have written rules — missing the key insight that learning from examples is an alternative approach

Related concepts

Want your child to actually understand this?

Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.

Frequently asked questions

What is when rules aren't enough (ml setup) — explained for kids? +

Some tasks are too complex to write rules for — so AI learns from examples instead. The bridge to machine learning, for Class 3.

What's the most common mistake children make about this concept? +

A clever enough programmer can always write rules to solve any problem

How does Dhee Learning teach this in a Class 3 session? +

Dhee opens with a question — for example: "Could you write an algorithm to tell a computer how to recognise your grandmother's face? Go ahead and try — what steps would you write?" — listens to your child's answer, then probes the reasoning behind it. The session ends when the child can apply the idea to a brand-new situation, not just recall it.