MHB How can I show the inequality?

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Inequality
Click For Summary
The discussion focuses on defining asymptotic bounds for the recursive relation T(n) = 3T(n/3 + 5) + n/2. The user successfully applied the master theorem to find that T'(n) = Θ(n log n). They established the lower bound c1n log n but seek guidance on proving the upper bound T(n) ≤ c2n log n. They attempted to show this by assuming the inequality holds for n/3 + 5 and manipulating the expressions, leading to a condition that needs to be satisfied for n ≥ 30. The conversation highlights the challenge of rigorously proving the upper bound while navigating through the recursive structure.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hey! (Mmm)

I have to define an asymptotic upper and lower bound of the recursive relation $T(n)=3 T(\frac{n}{3}+5)+\frac{n}{2}$.

Firstly,I solved the recursive relation: $T'(n)=3 T'(\frac{n}{3})+\frac{n}{2}$,using the master theorem:

$$a=3 \leq 1, b=3>1, f(n)=\frac{n}{2} \text{ asymptotically positive and increasing}$$

$$n^{\log_b a}=n$$

We see that : $f(n)=\Theta(n)$

So,from the master theorem: $$T'(n)=\Theta(n \lg n)$$

Then,I supposed that $T(n)=\Theta(n \lg n)$, so $\exists c_1, c_2>0 \text{ and } n_0 \geq 1 \text{ such that } \forall n \geq n_0: c_1 n \lg n \leq T(n) \leq c_2 n \lg n$

I showed that the inequality $c_1 n \lg n \leq T(n)$ is true..But..how can I show the inequality :

$$T(n) \leq c_2 n \lg n $$
?

I tried this:

Suppose that the inequality stands for $\frac{n}{3}+5$.Then: $$T(\frac{n}{3}+5) \leq c_2 (\frac{n}{3}+5) \lg (\frac{n}{3}+5)$$

$$T(n)=3 T(\frac{n}{3}+5)+\frac{n}{2}\leq 3 c_2 (\frac{n}{3}+5) \lg (\frac{n}{3}+5)+\frac{n}{2}=c_2(n+15) \lg (\frac{n}{3}+5)+\frac{n}{2} $$

How can I continue? (Thinking) (Thinking)
 
Physics news on Phys.org
Could we show it maybe like that?

$$T(n) \leq c_2(n+15) \lg (\frac{n}{3}+5)+\frac{n}{2}$$

Let $\frac{n}{3}+5 \leq \frac{n}{2} \Rightarrow n \geq 30$

Then $\forall n \geq 30:$

$$T(n) \leq c_2(n+15) \lg (\frac{n}{3}+5)+\frac{n}{2} \leq c_2(n+15) \lg (\frac{n}{2})+n = c_2 n \lg (\frac{n}{2})+15 c_2 \lg (\frac{n}{2})+n =c_2 n \lg n-(c_2 n-15c_2 \lg n+15 c_2-\frac{n}{2}) \leq c_2 n \lg n, \text{ if } c_2 n-15c_2 \lg n+15 c_2-\frac{n}{2} \geq 0$$

(Thinking)
 
If there are an infinite number of natural numbers, and an infinite number of fractions in between any two natural numbers, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and... then that must mean that there are not only infinite infinities, but an infinite number of those infinities. and an infinite number of those...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K