Technology
What is An algorithm?
An algorithm is a clear, step-by-step set of instructions for solving a problem or completing a task. A recipe is an algorithm for cooking; computers run algorithms to sort lists, find routes, recommend videos, and almost everything else they do.
See it, don’t just read it.
Watch a 2-minute lesson with voice + animation that explains an algorithm.
Key things to understand
- 1A precise step-by-step recipe to solve a problem.
- 2It takes an input and produces an output.
- 3The same algorithm works on any matching input.
- 4Better algorithms solve problems faster or with less memory.
Frequently asked questions
- What is an algorithm in simple terms?
- A set of clear, ordered steps that turns an input into a desired result — like a recipe a computer can follow exactly.
- Where are algorithms used?
- Everywhere computing happens — search engines, maps, social feeds, payments, and AI all run on algorithms.
- What makes a good algorithm?
- It's correct and efficient — using as little time and memory as possible to get the right answer.