Question

I need to prove this mathematically and I'm not sure what to do.

3. (a) Find the best possible relationship using one of the notations: 0, 2, O, o, w, for the following pairs of functions: n

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) Since Ig 8 3, both 3 n 6n 3100 + and g 8 1.6 10n-9000 are in e(n. Hence,

6n153100 E e(ng8- 10n16 -9000) ns

For n\lg n, n^{1.01} , we note that

n lgn Ig n ,1.01 ,0.01

But L'Hospital's rule applied to

lg .0.01 b0

shows that

lim gn 0 lim nlgn 1.01 noo noo n0.01

Therefore, n lgn o(nL01 .

For 3^n,(3.01)^n, we see that

{\frac{(3.01)^n}{3^n}}=(1+{\frac 1{300}})^n

Therefore,

\lim_{n\rightarrow\infty}{\frac{(3.01)^n}{3^n}}=\lim_{n\rightarrow\infty}(1+{\frac 1{300}})^n=\infty~\Rightarrow~\lim_{n\rightarrow\infty}{\frac{3^n}{(3.01)^n}}=0

which implies

3 E o((3.01)

For 7, n! we note that by Stirling approximation we have

{\frac{n\ln 7}{\ln (n!)}}={\frac{n\ln 7}{n\ln n-n+O(\ln n)}}

which implies

\lim_{n\rightarrow\infty}{\frac{n\ln 7}{\ln (n!)}}=\lim_{n\rightarrow\infty}{\frac{n\ln 7}{n\ln (n/e)+O(\ln n)}}=\lim_{n\rightarrow\infty}{\frac{\ln 7}{\ln (n/e)+O(n^{-1}\ln n)}}=0

Therefore,

7^n\in o(n!)

b) Let

C_1=\max_{0\leq n\leq 75}|2^n+500n-60000|,~~~C_2=\max_{75<n< 150}|n^2-100n|

Note that

\begin{align*}\lim_{n\rightarrow\infty}{\frac{n\lg n}{f(n)}}&=\lim_{n\rightarrow\infty}{\frac{n\lg n}{n\lg n-50n}}\\ &=\lim_{n\rightarrow\infty}{\frac 1{1-{\frac{50}{\lg n}}}}\\ &={\frac 1{1-\lim_{n\rightarrow\infty}{\frac{50}{\lg n}}}}\\ &={\frac 1{1-0}}\\ &=1\end{align*}

Thus, we have

\begin{align*}f(n)\in \Theta(n\lg n)\end{align*}

Add a comment
Know the answer?
Add Answer to:
I need to prove this mathematically and I'm not sure what to do. 3. (a) Find...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I'm not getting out put what should I do I have 3 text files which is...

    I'm not getting out put what should I do I have 3 text files which is in same folder with main program. I have attached program with it too. please help me with this. ------------------------------------------------------------------------------------ This program will read a group of positive numbers from three files ( not all necessarily the same size), and then calculate the average and median values for each file. Each file should have at least 10 scores. The program will then print all the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT