sorting strings

Jim Li jimmy at blake.acs.washington.edu
Fri Nov 17 18:53:33 AEST 1989


I want to sort 10000 records, each of 80 bytes long, in ascending order.
I put all the records in 'record' which was defined as follows:

char *record[10000];

What sorting algorithm shoud I use? Should I use the built-in 'qsort()'?
How about mergesort and heapsort?
(I want my program to run as FAST as possible!)

Thanks plenty.

Jim.
.



More information about the Comp.lang.c mailing list