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.