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?