Skip to content

Algorithms: Step-by-Step Thinking

Beginning of the lesson

Algorithms: Step-by-Step Thinking

A precise recipe of ordered steps that solves a problem

Big Idea: An algorithm is a clear list of steps, in the right order, that solves a problem or finishes a task. If you can write down exactly what to do, step by step, you have written an algorithm!
By the end you will be able to:
  • say what an algorithm is in simple words,
  • write clear, ordered steps for an everyday task,
  • explain why the order and the precision of the steps matter.

1. What is an algorithm?

An algorithm is a set of steps you follow, in order, to get something done. It is like a recipe. A recipe tells you exactly what to do first, next, and last, so that anyone who follows it gets the same result.

You already use algorithms every day, even if you never called them that. When you brush your teeth, tie your shoes, or make a sandwich, you follow steps in a certain order. An algorithm is simply that list of steps written down clearly.

Computers need algorithms because they cannot guess. A computer does exactly what the steps say. So the steps must be clear, in the right order, and have a beginning and an end.

2. Algorithms are all around you

Whenever you do a task the same way each time, you are following an algorithm. Look at these everyday examples:

Everyday taskThe algorithm (steps in order)
Brushing teethWet the brush, add toothpaste, brush, rinse
Making teaBoil water, add tea bag, pour water, wait, drink
Tying shoesCross the laces, make a loop, wrap, pull tight
Following a mapGo straight, turn left, walk to the corner, stop
Baking a cakeMix, pour, bake, wait, decorate

Notice that every task has a clear order. You would never rinse before you brush, or eat the cake before you bake it!

Continue this lesson on YourAIZone

The full lesson has the complete explanation, worked examples, common mistakes, tests with instant checking and an AI tutor. Start right away as a guest, or create an account to keep your progress.

In the full lesson

  • The complete explanation
  • Worked examples
  • Common mistakes and how to avoid them
  • Test questions: 15
  • AI tutor that answers questions about the topic
  • Progress tracking for students, parents and teachers