SOS! Hashing in C??

Hi all,

I am in a desperate situation to a C/C++ code. I tried all humanly possible ways to come thru it but in vain. I will be extremely thankful to anyone who could take a look at it and post me some help.
Thanks very much,
regards,
Mave

Here is the problem ...

Use a hash table with chaining. That each each element in the hash table is a linked list of nodes, each node will hold information about a single string. The hash key is the string itself. We also must manage the linked list of nodes. To do so the string is hashed a second time to produce a "string id number". Each node in the list holds the string id number and the string. The list is kept in ascending order on the string id number.
In the above case, we hash the string S to get the linked list in the table, then we hash S a second time to get the string id. Because the linked list is sorted, we can quit searching the list as soon as we get a node containing an id number larger than that of S. S is the name of the character string..
1> Code the proposal to make sure you understand it
[1119 byte] By [Balaji Allam] at [2007-11-18 9:58:45]
# 1 Re: SOS! Hashing in C??
Is this homework ? It looks like that from the text...

Well, you can download STLPort and look at their implementation of std::hash_set. It's probably implement in quite a similar way.
Yves M at 2007-11-9 0:25:21 >
# 2 Re: SOS! Hashing in C??
Originally posted by Yves M
Is this homework ? It looks like that from the text...
Must be summer school. It isn't December or May, the time of year when we get these types of requests :)

Regards,

Paul McKenzie
Paul McKenzie at 2007-11-9 0:26:21 >