Class 3 · CBSE AI · Strand C — Algorithms are Recipes
More than one way to solve a problem — for kids
Most problems have several valid algorithms. How to weigh the trade-offs. A thinking lesson for Class 3.
Class 3 · CBSE AI · Strand C — Algorithms are Recipes
Most problems have several valid algorithms. How to weigh the trade-offs. A thinking lesson for Class 3.
Routes to school in an Indian city
There are two ways to get to school: the short road through the market (fast, but sometimes very crowded) and the long road around the park (slower, but always clear). Both get you there. Choosing which algorithm to use depends on the situation — is there a bandh today? Is it peak hour?
Sorting dal before cooking
You can sort stones out of dal by (A) picking up each piece one by one and checking it, or (B) spreading it all on a tray and scanning row by row. Both work, but one is faster for large quantities. Choosing your method is just like choosing an algorithm.
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
You need to find your friend in a crowded mela. Here are two strategies: (A) walk up and down every single lane until you spot them; (B) go to the main food stall where you always meet. Which would you choose and why?
Rote answer
"Child picks one without explaining the trade-off"
Understood
"Child explains that strategy B is usually faster but only works if you agreed on a meeting point — strategy A always works but takes much longer"
Stage 2 — Reasoning
Both strategies will eventually find your friend. So why does it matter which one you choose? What makes one algorithm 'better' than another?
Follow-up Dhee may use: Can you think of a situation where the slow algorithm (A) is actually the better choice?
Stage 3 — Application
Here are two algorithms for tidying a messy room: (A) pick up every item and put it away immediately before moving to the next; (B) first gather all items into one pile, then sort them, then put each group away. Try both in your head — which is better and when?
Misconception Dhee watches for: Child believes one algorithm is universally better in all situations — missing the idea that context determines which algorithm to choose
Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.
Most problems have several valid algorithms. How to weigh the trade-offs. A thinking lesson for Class 3.
There is always one correct algorithm for a problem and all others are wrong
Dhee opens with a question — for example: "You need to find your friend in a crowded mela. Here are two strategies: (A) walk up and down every single lane until you spot them; (B) go to the main food stall where you always meet. Which would you choose and why?" — 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.