Skip to content
Learn The AI Glossary

Algorithm

A set of step-by-step rules a computer follows to solve a problem or complete a task.

1 min read Foundations Beginner Technical

In plain English

An algorithm is a precise sequence of steps, much like a recipe, that a computer follows to turn an input into a result. In traditional software a person writes those steps by hand. In machine learning, the learning algorithm is the procedure that adjusts a model based on data, so the model effectively works out its own rules rather than having them written for it.

A worked example

A sorting algorithm takes a shuffled list of names and returns them in alphabetical order by comparing and reordering items according to fixed rules.

Common confusion

People often use algorithm and AI model interchangeably. The algorithm is the procedure; the model is the trained result that procedure produces.

— RELATED ENTRIES —

Terms worth knowing next.

— STILL CURIOUS? —

Definitions are just the start.
go deeper.

Quick Answers tackle the questions everyone's actually asking — for parents, teachers, business owners, and the merely curious.

Browse Quick Answers
— OR — Back to A–Z Learn hub