[Solved] SOLVED:Computer Science 230 Homework 5

30 $

File Name: SOLVED:Computer_Science_230_Homework_5.zip
File Size: 357.96 KB

SKU: [Solved] SOLVED:Computer Science 230 Homework 5 Category: Tag:

Or Upload Your Assignment Here:


Assignment:1a. Use a hash table of size thirteen. First initialize the table.We want to be able to delete from the table easily.The hashfunction is f(k) = k%13.Use a linear probing to deal with collisions. On the left, show the table afterthe following keys have been inserted in this order:

1b. Given the current state of the scatter table inQuestion 1a, briefly explain how you would search for the numbers 4, 38, and 32.

1c. Show the table of Question 1a after deleting thenumbers 31 and 43. DO NOT ERASE THE FIRST TABLE. Write your answer in the right-handtable.

1d. Given the current state of the scatter table inQuestion 1c, briefly explain how you would search for the numbers 4, 38, and 32.

2a. Given a hash table of size seven with the hash function f(key)= key%7, showthe hash table after the following keys have been inserted in this order. Use alinked hashed structure (p. 292) todeal with collisions.

16,29, 23, 20, 17, 31, 2, 15, 36, 30, 13

b. Given the current state of the hash table inQuestion 3, briefly explain how you would search for the numbers 23, 4, and 22.

Submission:

Alternative waysto submit:

1. Print this document and write your answers on it.Give it to me by the date and time above. Be sure to put your name on it.

2. Edit this document so that it contains youranswers. Be sure to put your name in it. Name it <yourName.doc, where

3. Print this document and write your answers on it.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED:Computer Science 230 Homework 5
30 $