0

Say you have an algorithm that completes in a polynomial number of steps for the input of size n, like, for example, P(n)=2n^2+4n+3. The asymptotic tight bound for this algorithm Θ(n^2).

Is it true to say that the Big-Theta notation for any algorithm is n to the power of the degree of the polynomial P(n), or are there any cases where that is not true?

Govind Parmar
  • 20,656
  • 7
  • 53
  • 85

1 Answers1

1

The complexity of polynomial time algorithms are bounded by O(nk), where 0 < k ≤ ∞. It doesn't mean that all the algorithms are having a polynomial time complexity. There are many algorithms with sub polynomial complexity. Examples include O(k) (constant complexity), O(k√n) (kth root of n, where 1 ≤ k ≤ ∞), O(log n), O(log log n), etc. There are also algorithms which are having super polynomial time complexity. Examples for such complexities are O(kn), where 1 < k ≤ ∞, O(n!), etc.

Deepu
  • 7,592
  • 4
  • 25
  • 47