Explain the hashing function

Assignment Help Mathematics
Reference no: EM131570169

Question: A parking lot has 31 visitor spaces, numbered from 0 to 30. Visitors are assigned parking spaces using the hashing function h(k) = k mod 31, where k is the number formed from the first three digits on a visitor's license plate.

a) Which spaces are assigned by the hashing function to cars that have these first three digits on their license plates: 317, 918, 007, 100, 111, 310?

b) Describe a procedure visitors should follow to find a free parking space, when the space they are assigned is occupied.

Another way to resolve collisions in hashing is to use double hashing. We use an initial hashing function h(k) = k mod p where p is prime. We also use a second hashing function g(k) = (k + 1) mod (p - 2).When a collision occurs, we use a probing sequence h(k, i) = (h(k) + i · g(k)) mod p.

Reference no: EM131570169

Questions Cloud

Academic and professional success : Define critical thinking as it relates to academic and professional success. What steps can a student take to improve their critical-thinking skills?
Discussion of the intraorganizational bargaining : Discuss how the outcomes compared to your expectations for each process. Include discussion of the intraorganizational bargaining, the attitudinal structuring,
Sketch the stack picture for the instructions : Sketch the stack picture for the instructions (the current value stored in SP = 0x2000.FFF9)
Academic and professional development : How can a personal library of course content be used for both academic and professional development?
Explain the hashing function : A parking lot has 31 visitor spaces, numbered from 0 to 30. Visitors are assigned parking spaces using the hashing function h(k) = k mod 31.
Identify the ethical dilemmas : Identify the ethical dilemmas. Evaluate who are the stakeholders and how the stakeholders would be affected by various solutions to your dilemma(s).
What is the amount of depreciation for the second year : What is the amount of depreciation for the second year, during which the machine was used 5,000 hours
Project perspective not the business overall : Which of the triple constraints do you think is the most important for the project of implementing an enterprise hiring system for CIC?
Examine the key ramifications of the organization : Determine two (2) employment laws that you must consider in the process in question, and examine the key ramifications of the organization.

Reviews

Write a Review

Mathematics Questions & Answers

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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