AI Basics
Algorithm
A step-by-step set of instructions a computer follows to complete a task or reach a result.
- Parents
- Educators and school leaders
What parents should know
An algorithm is a set of steps a computer follows to get a result, like a recipe the software cannot skip. Recommendation feeds, search rankings, and many AI tools depend on algorithms. For kids and teens, the useful lesson is that a result can look objective and still reflect the rules and data someone chose.
On this page
What is an algorithm?
An algorithm is a clearly specified sequence of steps for solving a problem or completing a task. NIST describes it as a set of rules that, if followed, will give a prescribed result. People use algorithms too, such as the steps for long division. In software, the steps are written so a computer can run them the same way each time.
In everyday life, algorithms decide which video appears next, which search result sits at the top, and how a spam filter sorts email. Generative AI tools also rely on algorithms, including the process a language model uses to predict the next piece of text.
An algorithm is not automatically fair or wise. It does what it was designed and trained to do, with the data it was given. If the rules or the data leave something out, the result can be skewed, even when the steps ran correctly.
Why an algorithm matters
Kids and teens live with algorithmic choices all day: what they are shown, what is hidden, and what is recommended next. Naming the algorithm helps a family talk about those choices as design, not as fate.
In school, students may be asked to describe an algorithm in computer science or to notice how an app ranks information. That is part of AI literacy. The goal is not to make every child a programmer. It is to help them ask how a result was produced.
At home, a practical question is, what is this tool optimizing for? A feed built to hold attention behaves differently from a tutor built to explain a concept. Once you can name the steps and the goal, you can decide whether the tool belongs in a homework session.
How it shows up in practice
- A parent and child scroll a video feed and ask why one clip appeared after another.
- A student writes the steps they would use to sort a list, then compares that with how a program might do it.
- A class discusses how a search ranking is an algorithm, not a complete map of the truth.
How HeyOtto helps
HeyOtto is AI built for kids and teens. The useful skill is the same at home and in class: ask how a result was produced, and check it.
- Socratic tutoring. Otto asks guiding questions so kids and teens reason through the work, and it explains so they learn, instead of handing over a finished answer to copy.
- Web search for current questions. Otto can use web search and show citations, so a child can inspect a source rather than accept a ranked result at face value.
For families
Try freeFAQs
Is an algorithm the same thing as AI?
No. An algorithm is a set of steps. AI systems use algorithms, and they also learn patterns from data. A simple calculator follows algorithms and is not AI. When people say an app is using an algorithm, they often mean a set of rules for ranking or recommending, whether or not the system is AI.
Can an algorithm be biased?
Yes. If the rules or the training examples favor some people, topics, or answers over others, the results can be skewed. The steps may still run as designed. That is why it helps to ask what the system was optimized for and what data it learned from.
Do kids need to learn to code to understand algorithms?
No. They can start by describing everyday steps, such as a recipe or the way a game decides a winner, and then notice the same idea in the apps they use. Coding can deepen that understanding later. The first skill is to ask how a result was produced.
Sources
Last reviewed December 1, 2026. This entry is reviewed twice a year.



