Could someone explain the difference between polynomial-time, non-polynomial-time, and exponential-time algorithms?
For example, if an algorithm takes O(n^2) time, t
Polynomial time.
A polynomial is a sum of terms that look like Constant * x^k Exponential means something like Constant * k^x
Constant * x^k
Constant * k^x
(in both cases, k is a constant and x is a variable).
The execution time of exponential algorithms grows much faster than that of polynomial ones.