# Algorithm

An **algorithm** is a rule that, if applied appropriately, guarantees a solution to a problem. We can use an algorithm even if we cannot understand why it works.

For example, you may know that you can find the length of the third side of a right triangle by using the formula *a*^{2}*+ b*^{2}*=c*^{2}*,* although you may not have the foggiest notion of the mathematical principles behind the formula.

**Algorithm** is a widely-used scientific procedure for solving a problem which (unlike a HEURISTIC) is guaranteed to find the solution, or the best solution possible, even if the user doesn't know how it works.

#### Webster Dictionary Meaning

**Algorithm**

- The art of calculating with any species of notation; as, the algorithms of fractions, proportions, surds, etc.