sorting strings
Wm E Davidsen Jr
davidsen at crdos1.crd.ge.COM
Sat Nov 18 05:43:09 AEST 1989
In article <4496 at blake.acs.washington.edu> jimmy at blake.acs.washington.edu (Jim Li) writes:
| 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!)
One technique commonly used for sorting strings is to create a vector
of pointers to the individual strings and then sort the pointers. You
can then write or move the data is you must.
--
bill davidsen (davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon
More information about the Comp.lang.c
mailing list