📋 Algorithm
3rd Grade 🤖 Artificial Intelligence
An algorithm is an ordered list of clear steps that solves a problem or gets a task done. Computers follow algorithms — but a cake recipe is a kind of algorithm too.
To get a computer to do a task, you have to tell it exactly what to do and in what order. A computer doesn’t guess what you meant — it only does what’s written. That’s why a good algorithm is precise: every step is clear, and there’s a beginning and an end. Sometimes it also has conditions, like “if it’s raining, take an umbrella,” and repeats, like “keep doing this until the bowl is full.”
AI uses special algorithms called learning algorithms. Instead of a programmer writing every rule by hand, the algorithm gets lots of examples and adjusts itself a little after each one, until it gets better at guessing. The result is a model that can be used to make predictions.
A common mistake is thinking an algorithm is something complicated that only exists inside computers. Any set of ordered instructions is an algorithm: your route to school, the steps for adding big numbers in columns, or the instructions for putting a toy together. The difference is that for a computer, you have to write them in an extra-precise language — a programming language.
For example
- A pancake recipe: mix, heat the pan, pour, flip — in that order.
- Driving directions that say “Turn right, go straight for 200 yards, turn left.”
- A way to sort cards by number where you keep finding the smallest card and putting it at the front.
- An algorithm inside a recommendation system that picks which video to show you next.
📌 Remember: Algorithm = clear, ordered steps for solving a problem.
Quick quiz
What is an algorithm?
Which of these is an example of an algorithm outside a computer?
What is special about learning algorithms?