Possible Duplicate:
What's a good hash function for English words?
I want to calculate the frequency of any word in a text file. I solved this problem using BST. I want to solve this using hash table. Can you tell me the hash function. So that all same words store in a single key. Thanks.