What are algorithms and why should you care? We’ll start with an overview of algorithms and then discuss two games that you could use an algorithm to solve more efficiently – the number guessing game and a route-finding game.
In mathematics and computer science, an algorithm (/ˈælɡərɪðəm/ ( listen)) is a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of problems or to perform a computation. Algorithms are always unambiguous and are used as specifications for performing calculations, data processing, automated reasoning, and other tasks.