What is an algorithm?
An algorithm is a step-by-step procedure for solving a stated problem.
For example, there are many possible algorithms for multiplying numbers:
- multiplication table (suitable only for small numbers)
- long multiplication
- multiplication using logarithms
- multiplication using a slide rule
- binary fixed-point or floating-point multiplication (in a computer).