Käynnissä

hash map and linked lists

Today’s goal is to implement a Hash Map in C/C++. Write the functions “add(…)”,

“getvalues(…)”, and “deallocate(…)”, which add a new data to the hash map,

return a value of a key, and de-allocate all memory space of the hash map,

respectively. You can decide the parameter lists of the functions. We are

supposed to handle student data, which has CWID (8 digits), name, contact

number, and major. An example code of the student structure is:

struct Node

{

unsigned int CWID; // you can use a string type for CWID too.

string Name;

string ContactNumber;

string Major;

struct Node *pNext;

};

For getvalues(…) function, you can subdivide the function into smaller, e.g.,

getName(key), getContactNumber(key), and getMajor(key), since there are

multiple values of the key. Or, getvalues(…) may return a student structure. It’s

up to you.

You may want to use a class (encouraged but not required). You can use any

constant parameters for Hash table size, and algorithm for Hash function. The

main function should look like following:

int main(void)

{

// declaration of hash map or declare some variables for hash map

// Add student data records that you want. (at least 5 data)

// for example,

// add(50000001, “Tom”, “900-000-0000”, “Computer Science”);

// add(50000002, “Alex”, “900-000-1234”, “Software”);

// Display all data

// For example, cout << getName(50000001) << getContactNumber(50000001)…

// deallocate all memory space

deallocate(…);

return 0;

}

Taidot: C++ -ohjelmointi

Näytä lisää: struct programming, string hash, string data structure, string cplusplus, science algorithm, programming hash, programming data structure, programming computer science, programming algorithm example, node programming, node data structure, map string int, map string, map data science, map cplusplus, lists data structure, linked it, linked int, int map, hash table data structure, hash string, hash programming, hash data structure, goal programming example, example algorithm computer

About the Employer:
( 1 review ) United States

Projektin tunnus: #8670021

Myönnetty käyttäjälle:

vano101

I have updated my bid ..............................................................................

15 $ USD 1 päivässä
(581 arvostelua)
6.8

11 freelanceria on tarjonnut keskimäärin 31 $ tähän työhön

mahershahmeer

Hi there! I'm a Professional Software developer and Data Analyst for a well known Software House in Islamabad named PacSquare Pvt Ltd. If I get this job, I assure you that you'll get my best services in return. Plea Lisää

25 $ USD 1 päivässä
(19 arvostelua)
4.2
Calleus

Hi, I have strong background in Data Structures and experience in Programming. Let me help you. I am ready to start.

30 $ USD 2 päivässä
(7 arvostelua)
3.9
KarimRagab

I am an embedded software engineer with years of experience in C/C++ programming, doing my master's degree with 'A' total subject's grade in artificial intelligence and machine learning. I will do my best to meet yo Lisää

30 $ USD 1 päivässä
(11 arvostelua)
3.1
ARKSolution2015

Dear Hiring Manager, we will do it for you.I am new here and looking for opportunities to excel in this [url removed, login to view] us a chance to prove my self. Thank You

64 $ USD 1 päivässä
(1 arvostelu)
2.6
kpol4k

Hi, I'm experienced C/C++ developer working currently as delivery module leader in Mphasis Wyde company, my previous employer was Nokia. I done many students projects always well written and commented. BR, Konrad

25 $ USD 1 päivässä
(5 arvostelua)
2.6
calinfo7

Hi, I am suitable candidate for this project and already worked on similar projects in the past. I am pursuing PhD from reputed university. Why me: 1. Unlimited 24*7 support. 2. Minimum prices. 3. Quality Lisää

25 $ USD 1 päivässä
(0 arvostelua)
0.0
rajeshpal007

Can do it. Expert in C, Cpp, linux shell scripting. Contact me at skype: [url removed, login to view] phone: +919910005326

55 $ USD 1 päivässä
(0 arvostelua)
0.0
lancercoding

Hi sir I can do that project. I have a code for hash map just need to make few changes according to your requirements. I have good skills in data structures and will write an efficient and bugs free code

25 $ USD 1 päivässä
(0 arvostelua)
0.0
oodev

I'm professional C++, Java and Python developer with more than 6 years of experience. I worked in backend, desktop and mobile development and have knowledge in a lot of domains. There is good odds that I can help you w Lisää

30 $ USD 1 päivässä
(0 arvostelua)
0.0
brux05

Hi, I am Ahsan. I am a Computer Science Students. It's my 5th semester right now. I have studied these courses including Introduction to Computer Science, Computer Programming, Data Structures, Databases I hav Lisää

20 $ USD 3 päivässä
(0 arvostelua)
0.0