Google Answers Logo
View Question
 
Q: DIscrete Mathematics ( No Answer,   3 Comments )
Question  
Subject: DIscrete Mathematics
Category: Computers > Algorithms
Asked by: alexachi-ga
List Price: $2.50
Posted: 28 Feb 2005 19:38 PST
Expires: 30 Mar 2005 19:38 PST
Question ID: 482658
Theta function for (6n+1)(1+lg n)?
Answer  
There is no answer at this time.

Comments  
Subject: Re: DIscrete Mathematics
From: himanshuarora-ga on 21 Mar 2005 07:50 PST
 
Clarification:
In your question:
(6n+1)(1+lg n)
the term in first bracket I can understand but what is the term in the
second bracket. Is it (1+g(n)) or something else.

Himanshu Arora
Subject: Re: DIscrete Mathematics
From: ftirelo-ga on 30 Mar 2005 19:35 PST
 
(6n+1)(1+lg n) = 6n + 6n lg n + 1 + lg n
The term of highest degree is 6n lg n. So it is sufficient to cancel
out constants and the other terms to get (6n + 1)(1 + lg n) = Theta (n
lg n).
If you need a formal proof, it is sufficient to show three constants
c1, c2 and n0, such that c1 n lg n <= |(6n + 1)(1 + lg n)| <= c2 n lg
n, for all n >= n0. Since lg is only valid for positive numbers, one
can present constants
 * c1 = 5
 * c2 = 7
 * n0 = any value so that 7n lg n >= 6n lg n + 6n + lg n + 1
     - see it's not necessary to consider n0 in terms of c1, since all terms
       are positive for n >= 1.

To calculate n0, one can use the fact that deriving the function
   f(n) = 7n lg n - (6n lg n + 6n + lg n + 1)
        = n lg n - 6n - lg n - 1

produces f'(n) = n + lg n - 6 - 1/n, which is positive for all n > 64.
It means that for all n > 64, f(n) is strictly crescent. Then, if you
can find an n0 such that f(n0) > 0, the problem is solved. The easiest
way to obtain this value without so many calculations is to get the
next power of 2: 128.

So, we can conclude that:
(6n + 1)(1 + lg n) = Theta (n lg n), since:
 5 n lg n <= (6n + 1)(1 + lg n) <= 7 n lg n, for all n >= 128.

[]'s
Tirelo.
Subject: Re: DIscrete Mathematics
From: ftirelo-ga on 30 Mar 2005 19:37 PST
 
Now I saw an element of your question that I had not devised before
answering it. The expression lg n means "logarithm of n in base 2",
i.e, lg n is a number y such that 2^y = n.

[]s Tirelo.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy