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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d75494dd10472a30 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-26 09:42:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!typhoon.san.rr.com!not-for-mail Message-ID: <3C7BC3CD.3B7A46DC@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Components - GRACE Lists (Sorting them) References: <3C76EE71.40506@telepath.com> <4519e058.0202260859.4ecde69f@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 26 Feb 2002 17:20:22 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 1014744022 66.75.151.160 (Tue, 26 Feb 2002 09:20:22 PST) NNTP-Posting-Date: Tue, 26 Feb 2002 09:20:22 PST Organization: Road Runner Xref: archiver1.google.com comp.lang.ada:20468 Date: 2002-02-26T17:20:22+00:00 List-Id: Ted Dennison wrote: > The main reason I was inclined to stick with Quicksort is that it is > on *average* the fastest sort available. If "average case" is truly > the average (a big "if", I'll grant you), The only problem with quicksort's worst-case behavior is that it occurs when the list is already mostly sorted. The distribution of worst-case cases isn't random, and it's easy to code in a way that hits the worst case on a regular basis. -- Darren New San Diego, CA, USA (PST). Cryptokeys on demand. To the user, everything works just as expected, assuming the user's expectations are correct.