in reply to Initializing a hash table

To use hash, there is absolutely no initialization is needed.

Now if whatever you supposed to use as hash key is not unique in your database, you cannot use straight one level hash as your storage.

Try HoA(oH):