Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this project, you will maintain the information of a dictionary usingHashing. Your program will read the words and their meanings ( synonyms ) from a

this project, you will maintain the information of a dictionary usingHashing. Your program will read the words and their meanings(synonyms) from a file named words.txt. As well, the user should beable also to enter new words (and their meanings) into the program.Please use the following format for inputsWord:Meaning1#Meaning2#Meaning3Example:good:fine#excellent#greatNote that each word will consist of max of three synonyms only.You will have to create a hash table to store the words and use wordsas the keys. You should implement hashing in two different methodsto resolve collisions using open-addressing and double hashing andgenerate 2 different hash tables each using the different methods.The following options should be available for the user. For each option,you should provide the related information for both hash tables youhave created:1. Print hashed tables (including empty spots).2. Print out table size and the load factor.3. Print out the used hash functions.4. Insert a new record to hash table (insertion will be done onboth hash tables).5. Search for a specific word (specify which table to search in).6. Delete a specific word (from both tables).7. Compare between the two methods in terms of number ofcollisions occurred. Here you have to print the number ofcollisions occurred (if happened) once every new word isinserted.8. Save hash table back to a file named saved_words.txt (of thedouble hashing)

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 Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions