Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
jonroby
16,113 PointsN log N
What does N log N mean? Wouldn't 3 log2 64 = (log2 64) ^ 3? Which simplifies to 6 ^ 3 = 216. In other words, the 3 is an exponent of the log (base 2) of 64.
If that is correct, then wouldn't N log N = (log2 N) ^ N? That is, would N be an exponent of the log (base 2) of N?
I want to know because N log N appears in discussions of Big O notation. But even though everything I said seems to follow, it doesn't seem like it can actually be right because as N increases, the resulting number becomes too large to do any calculations on a calculator.
2 Answers
Iago Wandalsen Prates
21,699 PointsActually, 3 log2 64 = 18. that means 3*(log2 64) or you it could be log2 64^3
jonroby
16,113 PointsYes the answer is 3 log2 64 = 18! So you just multiply 3 x the log. I though in high school learned that you take the number to the left of the log as a exponent over everything, but this is wrong.
Thank you!