Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE THE BELOW INFORMATION, the slide is an example of the format for question 2 and 3. i=0repeatj=h(k,i)ifT[j]==NILT[j]=kreturnjelsei=i+1 until i==m Insert keys 89,18,49,58,69 with h(k)=kmod10

USE THE BELOW INFORMATION, the slide is an example of the format for question 2 and 3.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

i=0repeatj=h(k,i)ifT[j]==NILT[j]=kreturnjelsei=i+1 until i==m Insert keys 89,18,49,58,69 with h(k)=kmod10 h(k,i)=(h(k)+i)modmwherei=0,1,2m1 Quadratic probing h(k,i)=(h(k)+f(i))modm where f(i)=i2, and i=0,1,2.m1 1. Demonstrate the insertion of keys 5,28,19,15,20,33,12,17 into a hash table with collisions resolved by chaining. Let the hash table have 7 slots, and let the hash function be h(k)=kmod7. 2. Demonstrate the insertion of keys 5,28,19,15,20,33,12,17,10 into a hash table using open addressing with linear probing scheme. Let the hash table have 7 slots, and let the hash function be h(k)=kmod7. Hints: h(k,i)=(h(k)+f(i))modm, where f(i)=i, and i=0,1,2,3,,m1 3. Demonstrate the insertion of keys 76,93,40,35,47 into a hash table using open addressing with quadratic probing Let the hash table have 7 slots, and let the hash function be h(k)=kmod7. Hints: h(k,i)=(h(k)+f(i))modm, where f(i)=i2, and i=0,1,2,3,,m1

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

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago