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,

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: is [num() * 26^n-1 + num() * 26^n-2 + num() * 26^n-3 + + num() * 26 + num()] mod 100000 Compute the letter-hash value of the message WIZARDS. Find a different message that will hash to the same value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!