Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question is concerned with hashing with open addressing, where the table size is 1 0 ( indexed from 0 to 9 ) and the

This question is concerned with hashing with open addressing, where the table size is 10(indexed from 0 to 9) and the (linear) probing sequence is defined byh(k)= k mod 10 andh(k, i)=(h'(k)+ i) mod 10.Assume that the content of the hash table T is as follows:T[0]=49
T[1]=1
T|2]= NIL
T[3]= NIL
T[4]- DELETED
T[5]=25
T|6]= DELET
T7=36
T8=64
T|9]=9
Answer these questions please
A) The first cell (index to the table) probed by Hash-Search(T,84) is
B) The second cell (index to the table) probed by Hash-SearchT, 84) is
C) The first cell (index to the table) probed by Hash-Insert(T,19) is
D) The second cell (index to the table) probed by Hash-Insert(T,19) is
E) How many cells does Hash-Delete(T,49) probe?Please note that this question does not ask which cell is probed? It asks about HOW MANY.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions