comp.lang.ada
 help / color / mirror / Atom feed
From: kahn@kahn.pdial.interpath.net (Larry Kahn)
Subject: Re: WE NEED A GOOD Ada SORT PACKAGE!
Date: 6 Nov 1994 15:28:06 GMT
Date: 1994-11-06T15:28:06+00:00	[thread overview]
Message-ID: <39ism6$em4@redstone.interpath.net> (raw)
In-Reply-To: 39f622$p7d@gnat.cs.nyu.edu

In article <39f622$p7d@gnat.cs.nyu.edu>, dewar@cs.nyu.edu (Robert Dewar) says:
>
>Jahn, the idea of doing quicksort directly on a disk gives me a headache
>just thinking about the poor disk arm!
>
>no, you definitely can't do this if you are interested in efficiency,
>even on disk files you definitely need some multi-phase merge sort.
>For Realia-COBOL, I implemented the disk sort with a 64 way polyphase
>merge, and it seems to be the fastest external sort around, or at least
>was at the time I was paying attention to COBOL!
>

I have a shell sort example of a generic in Ada but it does the sort in memory..

For the tests we Did it was faster than a quicksort probably due to the overhead
of the quicksort code (this on a dec compiler with around 5000 items)

don't remember where the trade off point was where quicksort was faster
but sure there was one.....

The original source was from the following book:

-- from Software Components With Ada, Grady Booch, page 469

Laurence G. Kahn
Senior Software Engineer
Dynamics Research Corp.



  reply	other threads:[~1994-11-06 15:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-02 21:19 WE NEED A GOOD Ada SORT PACKAGE! Bennett, Chip (KTR) ~U
1994-11-03 17:42 ` Jahn Rentmeister
1994-11-05  5:43   ` Robert Dewar
1994-11-06 15:28     ` Larry Kahn [this message]
     [not found] ` <39bvj7$543@goanna.cs.rmit.oz.au>
1994-11-09  7:30   ` Richard A. O'Keefe
  -- strict thread matches above, loose matches on Subject: below --
1994-11-01 22:10 ferguson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox