Class 3 · CBSE AI · Strand C — Algorithms are Recipes
If-then decisions — how algorithms make choices
Algorithms make choices with 'if this, then that'. The conditional, explained for Class 3 children.
Class 3 · CBSE AI · Strand C — Algorithms are Recipes
Algorithms make choices with 'if this, then that'. The conditional, explained for Class 3 children.
Monsoon season in India
Every monsoon morning, you make a decision: if there are dark clouds, carry an umbrella; otherwise, leave it at home. That 'if-then-otherwise' thinking is exactly how computers make decisions — they check a condition and then choose what to do next.
A toll booth on a highway
At a toll booth, the rule is: if the driver has a FASTag, the barrier lifts automatically; otherwise, they stop and pay cash. The barrier follows an if-then rule all day long without anyone having to think about it each time.
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
The monitor's card says: if the ground is wet, games in the hall. Today is dry. What is missing from the card, and how would you write it?
Rote answer
"Child says the card needs more lines or a second card, without naming what the dry morning is missing."
Understood
"Child says the check is written but only the wet path is, so the dry path must be added — 'otherwise, games on the ground' — and then one card answers both mornings."
Stage 2 — Reasoning
Two cards, one for wet and one for dry — or one card with a check inside it. Which way should the monitor's card be built, and why?
Follow-up Dhee may use: On a dry morning, what exactly goes wrong for the child at the door with the two-card way?
Stage 3 — Application
At home time the gate helper must decide about umbrellas. Write the check for his card, then write both of its paths.
Misconception Dhee watches for: Child writes only the rain path and leaves the dry home time unwritten, or writes a check like 'if the sky looks scary' that two helpers would answer differently.
Dhee turns this concept into a short spoken lesson — teaching, listening, and probing — so your child builds the idea themselves.
Algorithms make choices with 'if this, then that'. The conditional, explained for Class 3 children.
If-then instructions are only needed for complicated programs — simple algorithms don't need decisions
Dhee opens with a question — for example: "The monitor's card says: if the ground is wet, games in the hall. Today is dry. What is missing from the card, and how would you write it?" — 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.