×
Get Full Access to Discrete Mathematics And Its Applications - 7 Edition - Chapter 4.5 - Problem 3e
Get Full Access to Discrete Mathematics And Its Applications - 7 Edition - Chapter 4.5 - Problem 3e

×

# A parking lot has 31 visitor spaces, numbered from 0 to

ISBN: 9780073383095 37

## Solution for problem 3E Chapter 4.5

Discrete Mathematics and Its Applications | 7th Edition

• Textbook Solutions
• 2901 Step-by-step solutions solved by professors and subject experts
• Get 24/7 help from StudySoup virtual teaching assistants

Discrete Mathematics and Its Applications | 7th Edition

4 5 1 281 Reviews
12
3
Problem 3E

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)) modp.

Step-by-Step Solution:
Step 1 of 3

Copyright and Fair Use: Fair Use: • Exception to copyright (only copyright) • Began as judicial doctrine • Only permitted when it won’t deprive the original author or publisher income for their work • Possible fair uses: new reporting, teaching, research, etc. Balancing: • On one end: promoting the production of useful work by granting a copyright • On the other end: encouraging the use and flow of information by limiting copyright Fair use often: • Transformative • Proportional or incidental • Credit sources Sony v. Universal Studios case: • 1984- Betamax case • Issue: was Sony liable for contributory copyright infringement by distributing a device that is capable of copyright infringement • STD: looked at

Step 2 of 3

Step 3 of 3

##### ISBN: 9780073383095

The answer to “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)) modp.” is broken down into a number of easy to follow steps, and 149 words. This full solution covers the following key subjects: hashing, function, use, mod, Assigned. This expansive textbook survival guide covers 101 chapters, and 4221 solutions. Discrete Mathematics and Its Applications was written by and is associated to the ISBN: 9780073383095. This textbook survival guide was created for the textbook: Discrete Mathematics and Its Applications, edition: 7. The full step-by-step solution to problem: 3E from chapter: 4.5 was answered by , our top Math solution expert on 06/21/17, 07:45AM. Since the solution to 3E from 4.5 chapter was answered, more than 389 students have viewed the full step-by-step answer.

#### Related chapters

Unlock Textbook Solution