Question
The downloads include a python starter program (P9HashTable1.py) that reads an employee file, sets up the data structures and then allows the user to search,
The downloads include a python starter program (P9HashTable1.py) that reads an employee file, sets up the data structures and then allows the user to search, add or delete employees from the database. You must store the employee file (EmployeeDB.csv) in the same folder as your python program. The python starter program has some missing functions that you must provide The deliverables this week are: 1. A search function that will find an employee record based on the employee ID. Use a hash function Mod(12) to convert empID to a position in the Hash Dictionary Using the beginChain value in the Hash Dictionary, traverse the Employee linked list 2. An insert function that will add a new employee to the database. Check to see if this is the first node of the chain and process differently if it is 3. A delete function that will remove an employee from the database. Youre not physically removing the employee record, youre just using the ptr to pass over records that are deleted. 4. After a period of time the database grows to be very large and your client asks you to make some improvements to make searching faster. What are some of the things you could do?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started