Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

The textbook I'm using for the course Introduction to Algorithms class has the following statement in it:

The equation of such a line is

$\log (T(N)) = 3 \log N + \log a$

(where a is a constant) which is equivalent to

$T(N) = a N^{3}$

My rusty algebra just cannot get me from the first one to the second one. My last math class, a graduate level intro to stats class, was twenty years ago.

Can someone walk me through how they got from the first equation to the second equation?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You just have to remember, that \begin{align} \log(a)+\log(b) = \log(a\cdot b) \end{align} And secondly \begin{align} c\cdot\log(a)=\log(a^c) \end{align} From that follows that \begin{align} 3\log(N)+\log(a) = \log(N^3)+\log(a) = \log(aN^3)= \log(T(n)) \end{align} So $T(n) = aN^3$.

Note: This holds for $\log, \quad\log_{10}, \quad \log_x$ or whatever you take as your basis.

share|improve this answer
    
Okay, that helps. Thank you very much. (I'm sorry I can't upvote yet.) –  e.inglewood Feb 1 '13 at 16:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.