An algorithm is a clear list of steps. You follow the steps in order. Each time, you get the same result. You use algorithms every day — even before you go to school!
A good algorithm helps anyone finish a task the right way, every time.
If you follow the same steps, you get the same good result.
Clear steps mean other people can do the task too, not just you.
Clear steps help you not forget an important part of the task.
Computers can only do what you tell them, one exact step at a time.
Clear steps to cook one dish, in the right order.
Wet, add toothpaste, brush, rinse — same steps every day.
"Turn left, then go straight" — steps that lead a friend to your house.
Sort, wash, dry, fold — one step after another.
Your map app gives you step-by-step directions to a place.
It follows steps: move forward, turn, clean, go back to charge.
Click each step below, in the order you think is correct. Then press "Check my order."
An algorithm can also make a choice. This is called a decision. It uses the word "if". Try it below!
Not every list of steps is a good algorithm. A good one is clear, complete, and in the right order. Pick the better one.
Pick something you do every day (like getting ready for school, or your favorite game). Write the steps in order, from start to finish.