oops
On Sat, May 1, 2010 at 5:50 PM, Sundeep Singh singh.sund...@gmail.comwrote:
Hi Amit,
here's the answer: (I am assuming in your equation lg implies log to the
base 10)
n 8 log(n)
= n/8 log(n)
= 10 ^(n/8) n
The final deduction was incorrect!!
for log base 10, the answer is:
2
yeah, you are right. It comes from 2 to 6. But is there any way to solve it
on paper?
-Regards
Amit Agarwal
Contact: 09765348182
www.amitagrwal.com
On Mon, May 3, 2010 at 3:02 PM, Sundeep Singh singh.sund...@gmail.comwrote:
oops
On Sat, May 1, 2010 at 5:50 PM, Sundeep Singh
Hi Amit,
This particular example was quite simple.. just required using calculator
couple of times.
We know log 1 =0 and log 10 = 1, so given the above equation, it was clear
that the answer had to lie within the range (1,10) and then I used the
calculator couple of times to narrow down the range.
this equation is true for 32 but not for 64 so i used a linear search
for 43 the right side is 43.410118 and for 44 its 43.675453
so this equation means n44
On Sat, May 1, 2010 at 9:43 AM, Amit Agarwal lifea...@gmail.com wrote:
I could not get you properly. This is an equation comes from the
An easy way to do would be to plot both functions in matlab, n and 8log(n)
... just see when y = x is below y = 8log(x) happens between 3= n = 25
if log is to natural base if it was log base 2 ... 3= n = 43
On Sat, May 1, 2010 at 10:43 AM, Amit Agarwal lifea...@gmail.com wrote:
I could
binary search on n
On Fri, Apr 30, 2010 at 10:15 PM, Amit Agarwal lifea...@gmail.com wrote:
how do I compute n from this equation.
n 8lg(n)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to