🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1068

Re: Advice needed for fastest sort algorthm

#1068
From: John A. Slagel
Date: Tue, 10 Nov 1992 23:17
27 lines
1622 bytes
   John Slagel (Me!) 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).
>>>
>>>   In other words, if you're sorting n objects, QuickSort takes "on the Order
>>>   of" n*log n steps, while bubble sort takes "on the order of" n*n steps.
>>>

   Dave Roberts chokes at my stupidy:
 
>Ack!!! People, remember that bubble sort has a *worst* case time of
>n!.  It can be quite fast if most things are sorted.

>Dave Roberts
>Advanced Micro Devices, Inc.
>Network Products Division
>david.roberts@amd.com

   Ack!!! Me, John Slagel, who is a soon-to-be-interviewing senior
   in C.S., gives up all hopes of getting a job with AMD :-)

-- 
------------------------------------------------------------------------
  John A. Slagel, email: jas37876@uxa.cso.uiuc.edu
Technical Details
Message-ID: <BxIwoJ.Hr7@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!news.cs.indiana.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
References: <6759@news.duke.edu> <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!ames!saimiri.primate.wisc.edu!sdd.hp.com!news.cs.indiana.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Re: Advice needed for fastest sort algorthm
References: <6759@news.duke.edu> <BxD5pt.DyI@news.cso.uiuc.edu> <1992Nov8.012628.23338@menudo.uh.edu> <1992Nov10.185527.3584@amd.com>
Message-ID: <BxIwoJ.Hr7@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Tue, 10 Nov 1992 23:17:07 GMT
Lines: 27