🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1561

Re: Advice needed for fastest sort algorthm

#1561
From: Alan Grant Finlay
Date: Tue, 17 Nov 1992 03:11
28 lines
1690 bytes
asu@panther4.panther.mot.com (Russ Trotter) writes:

>I hate to jump on this seemingly runaway train but.... 

>In one of my classes, I remember the teacher saying that it
>had been proven that O(n log n) was the best one could do
>for _comparison_ based sorting...  Is this a more correct assertion?

>I don't know much (at all :) ) about Radix sort  (only how to spell it :) )
>so I can't be sure if it disproves the statement above.

The problem with this question is that it is a non-question.
Its like asking what is the worlds fastest dishwasher.
Its depends upon the data and what you mean by fast.

Do you want fastest worst case, fastest average case, fastest "usually" case,
or fastest best case?

Do you mind if the algorithms worst case time happens when the input data
is already sorted?

What kind of machine architecture are you permitted to use.

How much data is there (an O(n^2) sort will beat most O(n log(n)) sorts
on less than a score or so of elements)?

Is the range of values being sorted small enough to fit in real or
virtual memory?
Technical Details
Message-ID: <alanf.721969869@bruce.cs.monash.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!sgiblab!munnari.oz.au!bruce.cs.monash.edu.au!alanf
References: <BxG0MC.7yK@chinet.chi.il.us> <10991@uqcspe.cs.uq.oz.au> <1992Nov11.043526.26732@netcom.com> <1992Nov11.161052.5552@panther.mot.com>

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!sgiblab!munnari.oz.au!bruce.cs.monash.edu.au!alanf
From: alanf@cs.monash.edu.au (Alan Grant Finlay)
Subject: Re: Advice needed for fastest sort algorthm
Message-ID: <alanf.721969869@bruce.cs.monash.edu.au>
Sender: news@bruce.cs.monash.edu.au (USENET News System)
Organization: Computer Science, Monash University, Australia
References: <BxG0MC.7yK@chinet.chi.il.us> <10991@uqcspe.cs.uq.oz.au> <1992Nov11.043526.26732@netcom.com> <1992Nov11.161052.5552@panther.mot.com>
Date: Tue, 17 Nov 1992 03:11:09 GMT
Lines: 28