Article View: rec.games.programmer
Article #1064Re: Advice needed for fastest sort algorthm
From: Tom Boutell
Date: Tue, 10 Nov 1992 21:46
Date: Tue, 10 Nov 1992 21:46
21 lines
1417 bytes
1417 bytes
In article <1992Nov10.185527.3584@amd.com> roberts@angelo.amd.com (Dave Roberts) writes: >In article <1992Nov8.012628.23338@menudo.uh.edu> libh@Jane.UH.EDU writes: >>In article <BxD5pt.DyI@news.cso.uiuc.edu>, jas37876@uxa.cso.uiuc.edu (John A. Slagel) writes: >>> Definately the quick sort. Its even built into ANSI C specs, so it >>> should be easy to implement. Look up quicksort in your C manual. If >>> I remember right, bubble sort works in O(n*n) and quicksort works in >>> O(n*log n). Caveat Emptor: I gather that, although quicksort() must be available, it is not required that it be implemented as the algorithm known as quick sort. Indeed, some C libraries apparently implement it with bubble sort. -T -- Tom Boutell, boutell@cshl.org Clausthaler is the best non - alcoholic beer in the known universe.
Technical Details
Message-ID:
<BxIsHv.Jxq@phage.cshl.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!elroy.jpl.nasa.gov!swrinde!emory!europa.asd.contel.com!darwin.sura.net!jvnc.net!phage!boutellReferences:
<BxD5pt.DyI@news.cso.uiuc.edu> <1992Nov8.012628.23338@menudo.uh.edu> <1992Nov10.185527.3584@amd.com>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!elroy.jpl.nasa.gov!swrinde!emory!europa.asd.contel.com!darwin.sura.net!jvnc.net!phage!boutell From: boutell@isis.cshl.org (Tom Boutell) Subject: Re: Advice needed for fastest sort algorthm Message-ID: <BxIsHv.Jxq@phage.cshl.org> Sender: news@phage.cshl.org Organization: Cold Spring Harbor Labs References: <BxD5pt.DyI@news.cso.uiuc.edu> <1992Nov8.012628.23338@menudo.uh.edu> <1992Nov10.185527.3584@amd.com> Date: Tue, 10 Nov 1992 21:46:43 GMT Lines: 21