0 pts
⚙ Computational Thinking · Pillar 4

Algorithm: Steps That Solve a Problem!

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!

Easy example — tying your shoelaces
  1. Cross the two laces 👟
  2. Pull one lace under the other
  3. Make a loop with one lace
  4. Wrap the other lace around the loop
  5. Pull it through and tighten
🤔 See that? Clear steps, in the right order, every time. That is an algorithm!
Why is it useful?

Why Algorithms Matter

A good algorithm helps anyone finish a task the right way, every time.

Same result, every time

If you follow the same steps, you get the same good result.

👥

Anyone can follow it

Clear steps mean other people can do the task too, not just you.

🚫

Fewer mistakes

Clear steps help you not forget an important part of the task.

🤖

Computers need it

Computers can only do what you tell them, one exact step at a time.

Look around you

Algorithms Are Everywhere

Practice · Activity 1

Put the Steps in Order

🎮 Try it — Make Instant Noodles

Click the steps in the right order

Click each step below, in the order you think is correct. Then press "Check my order."

Boil water in a pot
Wait 3 minutes
Put the noodles into the hot water
Add the seasoning packet
Stir and enjoy!
Practice · Activity 2

If This, Then That

An algorithm can also make a choice. This is called a decision. It uses the word "if". Try it below!

🎮 Try it — What to Wear

Pick the weather and see the algorithm decide

🌤️ Algorithm: "What should I wear today?"
☀️ Sunny
🌧️ Rainy
❄️ Cold
👆 Click a weather option to see what the algorithm says.
🍿 Algorithm: "How much snack should I eat?"
😋 Very hungry
🙂 A little hungry
😌 Not hungry
👆 Click how hungry you are to see what the algorithm says.
Practice · Activity 3

Good Algorithm or Bad Algorithm?

Not every list of steps is a good algorithm. A good one is clear, complete, and in the right order. Pick the better one.

🦷 Task: Brush your teeth
Option A
  1. Put water on brush
  2. Brush
  3. Done
Option B
  1. Wet the toothbrush
  2. Put toothpaste on it
  3. Brush for 2 minutes
  4. Rinse your mouth
🚸 Task: Cross the street safely
Option A
  1. Just walk across
Option B
  1. Look left
  2. Look right
  3. Look left again
  4. If no cars, walk across
💻 Task: Turn on a computer and open an app
Option A (wrong order)
  1. Open the app
  2. Wait for it to load
  3. Press the power button
Option B
  1. Press the power button
  2. Wait for it to load
  3. Open the app
Quick Recap

True or False?

1. An algorithm is just one big step.
2. The order of the steps is important.
3. An algorithm can have a decision, like "if it rains, take an umbrella."
4. Only computers use algorithms.
Your Turn

Write Your Own Algorithm

Pick something you do every day (like getting ready for school, or your favorite game). Write the steps in order, from start to finish.

🎯 Key Takeaways

  • Algorithm = a clear list of steps to solve a problem or finish a task.
  • The order of the steps matters — a wrong order can give a wrong result.
  • An algorithm can include a decision, using words like "if" and "then."
  • A good algorithm is clear and complete — not vague, and not missing steps.
  • You already follow algorithms every day — from tying your shoes to making noodles!