Wikipedia.org.ai logoWikipedia.org.ai

Algorithm

In mathematics and computer science, an algorithm ( ) is a finite sequence of mathematically rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing calculations and data processing. More advanced algorithms can use conditionals to divert the code execution through various routes (referred to as automated decision-making) and deduce valid inferences (referred to as automated reasoning).

Extends: Algorithms, [Articles with example pseudocode](https://wikipedia.org.ai/Articles with example pseudocode), [Mathematical logic](https://wikipedia.org.ai/Mathematical logic), [Theoretical computer science](https://wikipedia.org.ai/Theoretical computer science)