Hi everyone,

I have a small problem. I am writing a program for school in which I will construct a hash table for dictionary words, using the soundex code of the word as the hash function. For the hash function, I have to take the soundex code and convert it into a number. Here is what I know so far:

there are 26*7^4 possible soundex codes (which is 62426)

Can anyone help me to understand how to convert the soundex code (i.e. "T5600") into an integer?

Thank you,

Recommended Answers

All 2 Replies

Thank you! That tutorial helped out a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.