Application which property would be undesirable in hash

Assignment Help Game Theory
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

Reference no: EM13944867

Questions Cloud

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?

Reviews

Write a Review

Game Theory Questions & Answers

  Use the best-response approach to find all nash equilibria

Player 1 has the following set of strategies {A1;A2;A3;A4}; player 2’s set of strategies are {B1;B2;B3;B4}. Use the best-response approach to find all Nash equilibria.

  A supplier and a buyer, who are both risk neutral

A supplier and a buyer, who are both risk neutral, play the following game,  The buyer’s payoff is q^'-s^', and the supplier’s payoff is s^'-C(q^'), where C() is a strictly convex cost function with C(0)=C’(0)=0. These payoffs are commonly known.

  Pertaining to the matrix game theory problem

Pertaining to the matrix need simple and short answers, Find  (a) the strategies of the firm (b) where will the firm end up in the matrix equilibrium (c) whether the firm face the prisoner’s dilemma.

  Nash equilibria

Consider the two-period repeated game in which this stage game is played twice and the repeated-game payo s are simply the sum of the payo s in each of the two periods.

  Find the nash equilibrium

Two players, Ben and Diana, can choose strategy X or Y. If both Ben and Diana choose strategy X, every earns a payoff of $1000.

  Construct the payoff matrix for the game

The market for olive oil in new York City is controlled by 2-families, Sopranos and Contraltos. Both families will ruthlessly eliminate any other family that attempts to enter New York City olive oil market.

  Question about nash equilibrium

Following is a payoff matrix for Intel and AMD. In each cell, 1st number refers to AMD's profit, while second is Intel's.

  Finding the nash equilibrium

Determine the solution to the given advertising decision game between Coke and Pepsi, assuming the companies act independently.

  Nash equilibria to determine the best strategy

Little Kona is a small coffee corporation that is planning entering a market dominated through Big Brew. Each corporation's profit depends on whether Little Kona enters and whether Big Brew sets a high price or a low price.

  Creating a payoff table

Suppose you and your classmate are assigned a project on which you will earn one combined grade. You each wish to receive a good grade, but you also want to avoid hard work.

  Determine the nash equilibrium for trade policy

Consider trade relations in the United State and Mexico. Suppose that leaders of two countries believe the payoffs to alternative trade policies are as follows:

  Find the nash equilibrium outcomes

Use the given payoff matrix for a simultaneous move one shot game to answer the accompanying questions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd