The open secrets of good design practice include the importance of knowing what to keep whole, what to combine, what to separate, and what to throw away.
Complementary to this lecture a nice exposure of hash tables is also present in "The ANSI C Programming Language" Kernighan & Ritchie 2nd edition page 143 section 6.6
It is a more practical approach but it is effective.
Also an exercice is present.
Note:
In testing a hash table one is interested also
how the hash table behaves if the collisions do occur(altough they are not desirable).
To provoke some "artificial" collisions one can lower the HASHSIZE(the one presented in the book above).
I am being sponsored by Syntress! They bought me an amazing dedicated server to run catonmat on. If you're looking web services, I highly recommend the Syntress guys!
Complementary to this lecture a nice exposure of hash tables is also present in "The ANSI C Programming Language" Kernighan & Ritchie 2nd edition page 143 section 6.6
It is a more practical approach but it is effective.
Also an exercice is present.
Note:
In testing a hash table one is interested also
how the hash table behaves if the collisions do occur(altough they are not desirable).
To provoke some "artificial" collisions one can lower the HASHSIZE(the one presented in the book above).
Reply To This Comment