Consider a version of the division method in which h(k) = k mod m, where m = 2P-1 and k is a character string interpreted in radix 2P. Show that if we can derive string x from string y by permuting its characters, then x and y hash to the same value. Give an example of an application in which this property would be undesirable in a hash function. CHAINED-HASH-INSERT (T, x) 1 insert x at the head of list T[h(x.key)] CHAINED-HASH-SEARCH (T, k) 1 search for an element with key k in list T[h(k)] CHAINED-HASH-DELETE (T, x) 1 delete x from the list T[h(x.key)]

icon
Related questions
Question

I need help with this please

Consider a version of the division method in which h(k) = k mod m, where
m = 2P-1 and k is a character string interpreted in radix 2P. Show that if we
can derive string x from string y by permuting its characters, then x and y hash to
the same value. Give an example of an application in which this property would be
undesirable in a hash function.
Transcribed Image Text:Consider a version of the division method in which h(k) = k mod m, where m = 2P-1 and k is a character string interpreted in radix 2P. Show that if we can derive string x from string y by permuting its characters, then x and y hash to the same value. Give an example of an application in which this property would be undesirable in a hash function.
CHAINED-HASH-INSERT (T, x)
1 insert x at the head of list T[h(x.key)]
CHAINED-HASH-SEARCH (T, k)
1 search for an element with key k in list T[h(k)]
CHAINED-HASH-DELETE (T, x)
1 delete x from the list T[h(x.key)]
Transcribed Image Text:CHAINED-HASH-INSERT (T, x) 1 insert x at the head of list T[h(x.key)] CHAINED-HASH-SEARCH (T, k) 1 search for an element with key k in list T[h(k)] CHAINED-HASH-DELETE (T, x) 1 delete x from the list T[h(x.key)]
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer