Question: Here is a new hash function, let's call it letter-hash. First, consider the mapping of letters to numbers less than 26, A doubleheadarrow 0, B
Here is a new hash function, let's call it letter-hash. First, consider the mapping of letters to numbers less than 26, A doubleheadarrow 0, B doubleheadarrow 1, , Z doubleheadarrow 25. Say that num(#) is the numerical value of the letter #. In other words num(K) = 10. Then for a message of n letters, the hash of a message that is:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
