udp_tech@fennel.cc.uwa.oz.au (03/12/91)
Dale Chun (Playmac Tec{nologies) wanted source code (Pascal) for a sorting algorithm... 1. I'm a "C" person myself, but I think I'm correct in saying that both MicroSoft & Borland include quick-sort algorithms in their language libraries for Pascal. That may be the answer ? 2. Leendert AMMERAAL's book "Programs and Data Structures for C" has a nice section on sorting algorithms. Since the syntax for Pascal is rather similar to that for C, you may be able to cross- compile (by hand) from the C to the Pascal. Ammeraal is very fond of pointers, but I think Pascal is good at those, too. 3. If you just want a fast sorter, and maybe a few nice stats functions as well, you might like to consider |stat, a series of modules by Dr Gary PERLMAN, Dept Computer & Info. Science, Bolz Hall, Ohio State University, Columbus, Ohio. For everything including sources (sorry, they're in C), you'll be battling to spend more than $40. I have his source code (because I want to build a MicroSoft WINDOWS application with it), but it would take quite a while to work your way through it -- his code is very tight. Hope this helps, Denis BROWN, Snr Electronics Tech, Uni. of Western Australia, Dept Psychiatry & Behavioural Science.
ksun@jarthur.Claremont.EDU (Kang Sun) (03/14/91)
Sorry I just joined this group and I saw a post that someone's asking the source code for sorting algorithms? I have several textbooks on PASCAL. All of them have some sorting algorithms and codes. Which ones do you want? Quicksort (which version? There are many variety/version), bubble? merge? linear, heap? hash? Tell me which ones you want and I'll see if I can find the source code. ksun@jarthur.claremont.edu ksun@pomona.claremont.edu