← All questionsYou Noah Lab

How It Works · AI & Robots

What is an algorithm?

An algorithm is a list of clear steps for getting a job done, like a recipe. Computers and robots follow algorithms exactly.

How it works

  1. Every step must be so clear that it cannot be misunderstood.
  2. The steps happen in order. Change the order and you may get a different result.
  3. Loops repeat steps, and if-rules choose between steps depending on what is happening.
  4. A good algorithm is short, always finishes, and works for many different cases, not just one.

How do we know?

Try writing steps for making a sandwich and have someone follow them exactly as written. You will quickly find the steps you forgot. The word comes from the name of al-Khwarizmi, a mathematician who lived about 1,200 years ago.

Quick quiz

What is an algorithm most like?

Show the answer

A recipe with clear steps

Try it yourself

🔬 Open Robot Lab 3D📖 Ask NOAH in the lab

More AI & Robots questions

Places grown-ups can check

NIST · NASA

Written for kids by You Noah Lab with AI help, using standard science references. Spotted a mistake? Science gets better when people check it, so please tell a grown-up. You Noah Lab · All questions · Privacy