From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f6c360ce344b2364 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.190.104 with SMTP id gp8mr25370907pbc.4.1340263610422; Thu, 21 Jun 2012 00:26:50 -0700 (PDT) Path: l9ni2397pbj.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: Manuel Collado Newsgroups: comp.lang.ada Subject: Re: My Invention of "Bug Sort". Date: Thu, 21 Jun 2012 09:23:12 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <3852c348-a728-44ed-b065-c8a596c1e235@googlegroups.com> <698085ff-6ca3-4a0e-b963-11bdcf11e6b5@googlegroups.com> NNTP-Posting-Host: iWtGptPZ7bVhjjcZOsvNdQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Thunderbird/11.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-06-21T09:23:12+02:00 List-Id: El 21/06/2012 7:13, Simon Wright escribi�: > "Jeffrey R. Carter" 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