An algorithm is a self-contained series of instructions to perform a function.

In other words, an algorithm is a means of describing a way to solve a problem so that it can be solved repeatedly, by humans or machines. Computer scientists compare the efficiency of algorithms through the concept of "Algorithmic Complexity" or "Big O" notation.

For example:

- A cooking recipe is a simple algorithm for humans
- A sorting algorithm is often used in computer programming to explain a machine how to sort data

Common Algorithms are Pathfinding Algorithms such as the Traveling Salemen Problem, Tree Traversal Algorithms, etc..

There are also Machine Learning Algorithms such as Linear Regression, Logistic Regression, Decision Tree, Random Forest, Support Vector Machine, Recurrent Neural Network (RNN), Long Short Term Memory (LSTM) Neural Network, Convolutional Neural Network (CNN), Deep Convolutional Neural Network etc.

## Learn more

### General knowledge

- Algorithm on Wikipedia