🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #139

Re: news

#139
From: Jim Segrave
Date: Mon, 17 Aug 1998 00:00
20 lines
1682 bytes
In article <87lnozuhh7.fsf@loki.wkstn.nix>,
Nix  <{$eri}$@esperi.demon.co.uk> wrote:
> Richard Clayton <richard@turnpike.com> writes:
> 
> > it obviously failed to come across when I wrote before... if sorting is
> > taking any time you can actually measure then you're using the wrong
> > algorithm or implementing it poorly. You never use a BubbleSort for
> > anything (he says, provocatively)
> 
> Although modified bubblesorts (variants on shellsorts &c) are quite
> useful, especially when memory is a limited resource so you can't
> afford to use partitioning/recursive schemes like quicksort[1].
> 
> [1] this is assuming you can't be bothered to implement an iterative
>     variant of the quicksort, too.

If you always process the shortest partition first, then the stack
requirements for quicksort are proportional to the log of the number
of items. You need to be seriously short on memory for that to be a
problem.
Technical Details
Message-ID: <E0z8T6q-0007CV-00@jes.noc.nl.demon.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <vSBoABAkL9t1EwwM@ubik.demon.co.uk> <902567237.22987.2.nnrp-01.d4e48b20@news.demon.co.uk> <gUI7zNADfCz1EABV@turnpike.com> <87lnozuhh7.fsf@loki.wkstn.nix>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,ea300c1ef086cd2b
X-Google-Attributes: gid10bb05,public
From: Jim Segrave <jes@nl.demon.net>
Subject: Re: news
Date: 1998/08/17
Message-ID: <E0z8T6q-0007CV-00@jes.noc.nl.demon.net>
X-Deja-AN: 382015647
X-Mail2News-Path: news.demon.net!binnen.mail.nl.demon.net!jes.noc.nl.demon.net!jes
References: <vSBoABAkL9t1EwwM@ubik.demon.co.uk> <902567237.22987.2.nnrp-01.d4e48b20@news.demon.co.uk> <gUI7zNADfCz1EABV@turnpike.com> <87lnozuhh7.fsf@loki.wkstn.nix>
X-Trace: mail2news.demon.nl 903375030 mail2news:29877 mail2news mail2news.demon.nl
Organization: Demon Internet
Reply-To: jes@nl.demon.net
Newsgroups: demon.ip.developers
X-Complaints-To: abuse@demon.net