An algorithm is a well-defined procedure that allows a computer to
solve a problem. Another way to describe an algorithm is a sequence of
unambiguous instructions.
An algorithm is important in optimizing a computer program
according to the available resources. . Ultimately when anyone decide to solve
a problem through better algorithms then searching for the best combination of
program speed and least amount of memory consumption
is desired.