Concept explainers
A parking lot has 31 visitor space, numbered from 0 to 30. Visitors are assigned parking spaces using the hashing function
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
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
DISCRETE MATHEMATICS LOOSELEAF
- Suppose that the check digit is computed as described in Example . Prove that transposition errors of adjacent digits will not be detected unless one of the digits is the check digit. Example Using Check Digits Many companies use check digits for security purposes or for error detection. For example, an the digit may be appended to a -bit identification number to obtain the -digit invoice number of the form where the th bit, , is the check digit, computed as . If congruence modulo is used, then the check digit for an identification number . Thus the complete correct invoice number would appear as . If the invoice number were used instead and checked, an error would be detected, since .arrow_forwardWrite out the addition and multiplication tables for 4.arrow_forwardA combination lock will open when you select the right choice of three numbers (from 1 to 30, inclusive). How many different lock combinations are possible?arrow_forward
- Find the greatest common divisor of a,b, and c and write it in the form ax+by+cz for integers x,y, and z. a=14,b=28,c=35 a=26,b=52,c=60 a=143,b=385,c=65 a=60,b=84,c=105arrow_forwardWhat the hash tags (#) stand forarrow_forwardA 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.arrow_forward
- Suppose that a password is exactly six characters and each character is 1 of the 26 lowercase letters (a-z) or 10 integers (0-9). How many passwords contain exactly 1 integer?arrow_forwardA certain website wants you to build a 6-character password from the letters a through i, the numbers 0−9, or the symbols @, #, or &. Clearly, the order of the characters in the password matters(a) How many passwords are there in total?(b) How many passwords are there that consist of distinct characters?(c) How many passwords have the first two characters be letters, the middle two character be one of the symbols and the last two characters be numbers where each character does not have to be distinct?arrow_forwardDetermine the number of six-character passwords that can be formed using two letters from A to F and four numbers from 1 to 9. Assume a letter or number CANNOT be used more than once in any six-character password.arrow_forward
- Assume the sales representative calls 5 customers, and each call has 2 possible results: reaches the customer in person, and there is no answer. A phone record is a list of the results of each call. How many different phone records are possible?arrow_forwardA user is allowed to create an 8-digit password, but it must satisfy the following requirements: The first 2 spots must be different letters of the alphabet (case is not sensitive) The next 4 spots must be different numbers from the set {0-9} The last 2 spots must be different non-alphanumeric symbols from the set {# , @, $,%} How many passwords are possible?arrow_forwardEncrypt the message KILLTHEBEAST using shift cipher with K=18.arrow_forward
- Elements Of Modern AlgebraAlgebraISBN:9781285463230Author:Gilbert, Linda, JimmiePublisher:Cengage Learning,Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell
- Mathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning