Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hash8 1. Hashing (20) Given the input (84, 12,48, 16, 38, 108, 36,60, 72, 63) and a hash function h(z)- mod 10, show what happens

hash8

image text in transcribed

1. Hashing (20) Given the input (84, 12,48, 16, 38, 108, 36,60, 72, 63) and a hash function h(z)- mod 10, show what happens when each element in the list is inserted into the hash table of size 10 using the following collision policy. (a) (4) Open hash table. Explain what method of insertion you are using. (b) (4) Closed hash table using linear probing (assuming that the increment is 1). (c) (4) Closed hash table with second hash function h2(x)-3-x mod 3. d) (4) What are the advantages and disadvantages of the various collision strategies in the first two questions? Justify your answer (e) (4) Which hash function is a better hash function for the above sequence: (1) hi() mod 12 or (2) h2() mod 11? Justify your answer. Note that the size of hash table will change according to hash function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What is the quality audit used for?

Answered: 1 week ago

Question

Identify the data, data structures, and relationships among them.

Answered: 1 week ago