Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose you are implementing a dynamic set of student records as a hash table. Each record has an integer key. Key can have values from

Suppose you are implementing a dynamic set of student records as a hash table. Each record has an integer key. Key can have values from 0 through 65,536 and no two records can have the same key values. In addition to the key, each record has following information.

Name:

GPA:

Academic level:

Even though the key can take a value between 0 and 65536, this university can have max 10000 students at a given time.

Hash Table Implementation Details: Assume that the hash key is k mod m and using chaining in case of a collision. Also, the size (m) of the hash table is 1000. Also, you can assume that keys for student are generated using a random uniform distribution function.

Write a C or C++ program that Implements the hash table construction for the above scenario and then implement the following three functions

a) INSERT(T, x) // insert the student record x to the table

b) DELETE(T, x) // delete the student record x from the table

c) SEARCH(T, k) //search key k in the hash table

image text in transcribed

C Wil N Do wssystem 32cmd.exe ash Table Implementation 3EasEEaaaszs3ss3Es 1. Insert a Record (user enters the name, GPA, Academic level, Key (Key should be between e 65536 2. Search the table (user enter a key for search) Key should be between -65536 Delete a record (user enter a key of the decord to be deleted) enter your choice Press any key to continue

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions