A step-by-step set of instructions for solving a problem.
Start with the idea
An algorithm is a finite list of clear steps that solves a problem or completes a task. A recipe is a good everyday example: follow the steps in order and you get the result.
In computer science, algorithms are judged by how correct they are and how efficient they are, meaning how much time and memory they need as the input grows.
Famous examples include sorting algorithms, which put data in order, and search algorithms, which find an item in a collection.
A visual model
One small example.
EXAMPLEQuick check.
Choose the best answer, then see why.
Save a thought for later.
Write down a question, a connection, or the one idea you want to remember. This note stays in your browser.
Key terms.
Further reading.
Good next steps from trusted learning and standards sources.