What is an Algorithm?
Explore the definition and purpose of algorithms, including an example to clarify precise instructions. Understand the historical development of the term algorithm from its roots in medieval mathematics and how it relates to computational problem solving in C++.
We'll cover the following...
We'll cover the following...
Introduction to algorithm
An algorithm is an explicit, precise, unambiguous, mechanically-executable sequence of elementary instructions, usually intended to accomplish a specific purpose. For example, here is an algorithm for singing the song “99 Bottles of Beer on the Wall” for arbitrary values of 99:
Algorithm
...