size of the hash table
POLYNOMIAL STRING HASHING key(string input) -> hash -> index
hash(str) = [(str.charCodeAt(0) * P^(n-1)) + (str.charCodeAt(1) * P^(n-2)) + ... ] % M
P => any prime number, roughly equal to the total no of characters used in the key * e.g. if the key only uses lower-case alphabets => prime number closer to 26 => 31
M => usually the size of bucket list, because probability of two strings colliding must be inversely proportional to M
n => length of the key
Hash Table data structure