Foundations

Algorithm

stable definition

Definition

An algorithm is a finite, specified procedure for transforming inputs into outputs or solving a class of problems.

Distinguish it from nearby terms

A model is a learned or encoded artifact; an algorithm is the procedure used to train, search, optimize, or operate it.

Check your understanding

Identify the inputs, ordered operations, stopping condition, and expected output.