Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given a hash table of size 1 5 , integer keys k , and a hash function h h 1 ( k ) = k

Given a hash table of size 15, integer keys k, and a hash function h
h1(k)=k%15
In which slots are 17 and 18 entered?
17:
18
Assume 17 and 18 have been entered using h1
If we use linear probing (step =1), in which slot is 32 entered next?
How many collisions occurred?
Instead, if we use quadratic probing, in which slot would 32 be entered next?
How many collisions would occur?
Suppose we start from an empty HashTable but this time we use double hashing.
h1(k)=k%15
h2(k)=7-k%7
Assuming that 17 and 18 have been entered into the new HashTable, where is 47 entered next?
How many collisions occurred?
image text in transcribed

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions