where ad>0, be a degree-d polynomial in n, and let k be a constant. Use the definitions of the asymptotic notations to prove the following properties.
a. If k≥d, then p(n)=O(nk).
b. If k≤d, then p(n)=Ω(nk).
c. If k=d, then p(n)=Θ(nk).
d. If k>d, then p(n)=o(nk).
e. If k<d, then p(n)=ω(nk).
Let's see that p(n)=O(nd). We need do pick c=ad+b, such that
i=0∑d=adnd+ad−1nd−1+⋯+a1n+a0≤cnd.
When we divide by nd, we get
c=ad+b≥ad+nad−1+n2ad−2+⋯+nda0.
and
b≥nad−1+n2ad−2+⋯+nda0.
If we choose b=1, then we can choose n0,
n0=max(dad−1,dad−2,…,dda0).
Now we have n0 and c, such that
p(n)≤cndfor n≥n0,
which is the definition of O(nd).
By chosing b=−1 we can prove the Ω(nd) inequality and thus the Θ(nd) inequality.
It is very similar to prove the other inequalities.
Search
From here you can search these documents. Enter
your search terms below.