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.
Class 3 · CBSE AI · Strand C — Algorithms are Recipes
Some tasks are too complex to write rules for — so AI learns from examples instead. The bridge to machine learning, for Class 3.
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.
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
Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.
Some tasks are too complex to write rules for — so AI learns from examples instead. The bridge to machine learning, for Class 3.
A clever enough programmer can always write rules to solve any problem
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.