3.1-2 Show that for any real constants a and b , where
b>0,(n+a)b=Θ(nb)
Solution:
To prove this, we have to show that there exists constants c1,c2,n0>0
Note that, n+a≤2n,
Therefore, when n≥2|a|,
As b>0, we can raise all the terms of the previous inequality to the power of b without breaking the inequality:
0≤(n2)b≤(n+a)b≤(2n)b⇒0≤12bnb≤(n+a)b≤2bnb
So,(n+a)b=Θ(nb)
b>0,(n+a)b=Θ(nb)
Solution:
To prove this, we have to show that there exists constants c1,c2,n0>0
such that 0≤c1nb≤(n+a)b≤c2nb
for all n≥n0
Note that, n+a≤2n,
when |a|≤n
Also note, n+a≥12n,
when |a|≤n2
Therefore, when n≥2|a|,
0≤n2≤n+a≤2n
As b>0, we can raise all the terms of the previous inequality to the power of b without breaking the inequality:
0≤(n2)b≤(n+a)b≤(2n)b⇒0≤12bnb≤(n+a)b≤2bnb
So,(n+a)b=Θ(nb)
because there exists c1=1/2b,c2=2b,
and n0=2|a|
No comments :
Post a Comment