Reference no: EM13944867
Please review the problem and explain each step of the solution listed below, and give me an example of an application which this property would be undesirable in a hash function.
problem
----------
Consider a version of the division method in which h(k) = k mod m, where m = (2^p) -1 and k is a character string interpreted in radix 2^p. Show that if a string x can be derived from string y by permuting its characters, then x and y hash to the same value. <B>Give an example of an application in which this property would be undesirable in a hash function.</B>
solution
---------
All permutations can be generated by a sequence of two character interchanges. If two arbitrary characters, i and j, are switched, then the values hash to the same place.
We consider two numbers x and y which have characters i and j interchanged, and i > j.
Note: in this solution xi = x sub i and xj = x sub j (same goes for y).
x - y = (xi - yi)(m + 1)^(i-1) + (xj - yj)(m+1)^(j-1)
= (xi - xj)(m + 1)^(i-1) - (xi - xj)(m+1)^(j-1)
= (xi - xj)[(m + 1)^(i-1) - (m + 1)^(j-1) ]
= (xi - xj)(m + 1)^(j-1) * [(m + 1)^(i-j) -1]
= (xi - xj)(m + 1)^(j-1) * [(m + 1) - 1] * Summation of (m + 1)^k [from k = 0 to i - j - 1]
= 0 mod m
Effect of studying modern popular culture on personal values
: Compose a 1- to 2-page paper in which you do the following: Appraise the effect of studying modern popular culture on your personal beliefs and values. Discuss the extent to which your consumption of and attitude about popular culture may or may not ..
|
Create a program for a pizza shop
: You are tasked with creating a program for a pizza shop- however, as this is a comparative languages course, you will be creating the same application in the following programming languages
|
Expected number that will be vaccinated
: Federal health officials estimate that 67% of all those over age 65 receive the flu vaccine. Suppose 8 people over 65 will be randomly selected. Which of the following is the expected number that will be vaccinated in such a random sample of 8 peo..
|
One-page description of a film that uses jazz music
: An example would be Otto Preminger's Anatomy of a Murder. It was filmed in 1959. The director was an Austrian born director named Otto Preminger. The score was provided by Duke Ellington. Etc.
|
Application which property would be undesirable in hash
: Please review the problem and explain each step of the solution listed below, and give me an example of an application which this property would be undesirable in a hash function.
|
Improving quality of health care services
: Improving Quality of Health Care Services - Select one initiative used to improve quality and/or safety of health care. Summarize the initiative and provide your views on the effectiveness of this initiative and how it can be improved
|
Critically analyse an organisation of your choice
: Using relevant theoretical perspectives and frameworks, critically analyse an organisation of your choice. Within your analysis you should focus on no more than two selected topics from part two (this semester) of this programme.
|
Anthropology, science and modern evolutionary theory
: nature of humans from an evolutionary perspective and provides a means of observing and understanding ourselves and our history as a species.
|
What was a defining moment in their struggle
: What was a defining moment in their struggle, and why? How did they react? What legislation worked to help them achieve Civil Rights?
|