From: Manuel Collado <m.collado@domain.invalid>
Subject: Re: My Invention of "Bug Sort".
Date: Thu, 21 Jun 2012 09:23:12 +0200
Date: 2012-06-21T09:23:12+02:00 [thread overview]
Message-ID: <jruibm$gn2$1@speranza.aioe.org> (raw)
In-Reply-To: m2lijhs0vn.fsf@pushface.org
El 21/06/2012 7:13, Simon Wright escribi�:
> "Jeffrey R. Carter"<ggsub@pragmada.co.cc> writes:
>
>>> 2 ) In "O(N log N)" do I assume log to the base 'e' or what.
>>
>> In "Big-O" notation, log is understood to be to the base 2.
>
> Isn't there a constant factor between log2(x) and ln(x)? Which is taken
> up in the O?
>
> N = e**x = 2**y
>
> Taking natural logs,
>
> ln N = x = y.ln 2
Yes. In "Big-O" notation, the base for log() is irrelevant.
O(log N) = O(ln N)
Both expressions denote exactly the same set of functions.
--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado
next prev parent reply other threads:[~2012-06-21 7:26 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-19 7:13 My Invention of "Bug Sort" Austin Obyrne
2012-06-19 11:55 ` Peter C. Chapin
2012-06-19 13:01 ` Austin Obyrne
2012-06-19 22:39 ` ggsub
2012-06-20 8:32 ` Austin Obyrne
2012-06-20 19:45 ` ggsub
2012-06-20 10:57 ` Austin Obyrne
2012-06-20 12:47 ` Manuel Collado
2012-06-20 12:51 ` Manuel Collado
2012-06-20 13:13 ` Manuel Collado
2012-06-20 15:17 ` Austin Obyrne
2012-06-22 20:31 ` Randy Brukardt
2012-06-20 19:38 ` ggsub
2012-06-20 23:59 ` Austin Obyrne
2012-06-21 1:17 ` Jeffrey R. Carter
2012-06-21 5:13 ` Simon Wright
2012-06-21 7:23 ` Manuel Collado [this message]
2012-06-21 11:50 ` Austin Obyrne
2012-06-21 12:09 ` Dmitry A. Kazakov
2012-06-22 20:37 ` Randy Brukardt
2012-06-22 21:16 ` Simon Wright
2012-06-26 22:29 ` Randy Brukardt
2012-06-28 19:05 ` Niklas Holsti
2012-07-03 2:05 ` Randy Brukardt
2012-06-28 20:59 ` Simon Wright
2012-07-03 2:11 ` Randy Brukardt
2012-07-03 9:47 ` Simon Wright
2012-06-21 18:45 ` Jeffrey Carter
2012-06-22 6:52 ` Austin Obyrne
2012-06-21 15:10 ` Adam Beneschan
2012-06-21 18:24 ` Jeffrey Carter
2012-06-21 7:24 ` Austin Obyrne
2012-06-19 22:56 ` Martin Trenkmann
2012-06-20 0:11 ` robin.vowels
2012-06-20 8:51 ` Austin Obyrne
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox