algorithm

A precise, finite list of steps that turns an input into the answer you want.

In more detail

Every function you write follows some algorithm, whether you named it or not. This course compares algorithms by how their work grows as the input grows, not by how fast one machine runs them. Choosing a better algorithm usually beats buying faster hardware once the input is large.

Related terms

Taught in

References