what is algorthim??
Algorithm is step wise finite number of instructions to solve a problem. It is generally used in mathematics, computing and data processing related subjects. It is a list of well defined instructions are used for completing a task.
For example: Division algorithm-
If f(x) and g(x) are any two polynomials with g(x) not equal to zero, then we can always find polynomials q(x) and r(x) such that-
f(x) = q(x) + r(x), where r(x) = 0 or degree r(x) < degree g(x).
If r(x) = 0, then polynomial g(x) is factor of polynomial f(x).
These are well define sequence instruction for solving problem of polynomials.