esti Posted November 16, 2013 Posted November 16, 2013 Hi, I'm struggling with these 2 questions: I'm trying to understand what should i prove here and what is the approach for solving that? Q1: both expressions are O(nlogn) ? Q2: ?? Tnx, Shimon
mathematic Posted November 17, 2013 Posted November 17, 2013 First one is easy ∑ log(k) (k=1,n) compared to nlog(n). Obviously nlog(n) is bigger. Second is a little confusing, Left term exponent. What is it the exponent of: argument of ln or ln of argument?
esti Posted November 17, 2013 Author Posted November 17, 2013 Second is a little confusing, Left term exponent. What is it the exponent of: argument of ln or ln of argument? Yep, I am also confused with that - need to check
AtomicMaster Posted November 18, 2013 Posted November 18, 2013 my natural logs are rusty, but if i recall: [math]ln(e^{e^k})=e^k[/math] [math]ln(e^k)=k[/math] [math]ln\left( e^{e^k}\right)^k=ln(e^{e^k*k})=e^k*k[/math] so second relationship should therefore be: [math]e^k*k, e^{e^k*k}[/math] (feel free to check all that though)
Enthalpy Posted November 19, 2013 Posted November 19, 2013 http://en.wikipedia.org/wiki/Stirling%27s_approximation Log(fact(N)) ~ N*Log(N) -N +0.5*Log(2pi*N)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now