Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Program tha...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 16 Topic 26192 of 26960
Post > Topic >>

Re: Program that makes a list of words.

by Richard Heathfield <rjh@[EMAIL PROTECTED] > May 13, 2008 at 12:22 PM

viza said:

<snip>
>>
>>     qsort(WordArray, Treecount, sizeof *WordArray, CompareWords);
> 
> pot? kettle? :-)

I don't follow. I grabbed something off the Net and hacked it a bit to
give 
the OP a rough idea. I neither wrote the original code nor intended to 
provide a perfect solution.

> Even the most rushed semi-efficient implementation would use an insert
> sort on a linked list.

I'd have used a BST, personally. But I didn't rush this implementation. I 
stole it.

-- 
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www.
+rjh@[EMAIL PROTECTED]
 users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
 




 16 Posts in Topic:
Program that makes a list of words.
lundslaktare@[EMAIL PROTE  2008-05-12 23:32:01 
Re: Program that makes a list of words.
Chris McDonald <chris@  2008-05-13 06:43:04 
Re: Program that makes a list of words.
lundslaktare@[EMAIL PROTE  2008-05-13 00:12:08 
Re: Program that makes a list of words.
Chris McDonald <chris@  2008-05-13 07:24:44 
Re: Program that makes a list of words.
Richard Heathfield <rj  2008-05-13 07:38:04 
Re: Program that makes a list of words.
lundslaktare@[EMAIL PROTE  2008-05-13 01:22:26 
Re: Program that makes a list of words.
Richard Heathfield <rj  2008-05-13 08:52:13 
Re: Program that makes a list of words.
viza <tom.viza@[EMAIL   2008-05-13 04:48:53 
Re: Program that makes a list of words.
"Joachim Schmitz&quo  2008-05-13 13:55:22 
Re: Program that makes a list of words.
pete <pfiland@[EMAIL P  2008-05-13 07:59:33 
Re: Program that makes a list of words.
Richard Heathfield <rj  2008-05-13 12:22:16 
Re: Program that makes a list of words.
Keith Thompson <kst-u@  2008-05-13 11:14:39 
Re: Program that makes a list of words.
CBFalconer <cbfalconer  2008-05-13 10:21:13 
Re: Program that makes a list of words.
viza <tom.viza@[EMAIL   2008-05-13 11:30:02 
Re: Program that makes a list of words.
viza <tom.viza@[EMAIL   2008-05-13 11:37:06 
Re: Program that makes a list of words.
CBFalconer <cbfalconer  2008-05-13 16:28:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:32:40 CDT 2008.