Write a c program including a suitable hashing function


Question:

Country names parser and simple hash table in C++

Create a program to help me with my business.

Here is a list of the countries around the world: https://www.arrl.org/files/file/DXCC/dxcclist_2011e.txt

Parse this list as appropriate to retrieve just the country names. Remove any country names that involve more than a single word. Use the remaining list of single word country names as your source of data. Do not use the "deleted entries" list.

Write a C++ program that includes a suitable hashing function and hash table to store this list of countries into your hash table. Demonstrate building the hash table, print out the final hash table, and demonstrate at least 10 cases of retrieving items (country names) from the hash table. Your system must deal with collisions in an appropriate manner.

Try at least two different sizes of hash tables and keep track of the number of collisions in each case and print those results.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a c program including a suitable hashing function
Reference No:- TGS01937746

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)