Compare Algorithms: Correctness & Efficiency
Programs & Judgement · comparing algorithms · check correctness first, then compare efficiency

Kavi Judges Two Robots
Two robot owls each hooted, "I can find the biggest acorn!" One robot checked every acorn and always found the biggest — but it was slow. The other grabbed the first acorn it saw — super fast, but it often grabbed the wrong one! "Both robots run," said Kavi, "but running isn't enough." So Kavi judges every algorithm with two questions, and always in order. First: Is it correct? — does it give the right answer for every case? Then, only for the ones that pass: Is it efficient? — which does the least work? "A fast wrong answer is still wrong," hooted Kavi. "Check correct first — then pick the fastest of the ones that are right!"
What your child will learn
A peek inside
Try this at home: When you compare two algorithms, which do you check FIRST — correctness or efficiency?
Ready to play and learn?
Start the free interactive lesson, or print the handout for screen-free play.
Part of Computing · Stage 6 · S6 on KAVI Academy — a secular, whole-child learning platform for ages 5–12.
