Algorithm

An algorithm is a precise procedure for solving a problem or computing a result.

Intuition

It is a recipe that tells a computer what steps to follow.

Technical definition

An algorithm is a finite, well-defined sequence of operations that transforms inputs into outputs under specified conditions.

Example

Binary search is an algorithm for finding an item in a sorted list.

Common misunderstandings

  • An algorithm is not necessarily machine learning.
  • The same problem can have many algorithms with different tradeoffs.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.