Question: create a worker class for employees, then create N (N>=20) different employees with different name, department, and salary. Then, use the following searching algorithms to
create a worker class for employees, then create N (N>=20) different employees with different name, department, and salary.
Then, use the following searching algorithms to search one employee by salary, and output their first name, last name, department, and salary. 1. Interpolation Search 2. Binary Search 3. Jump Search Evaluate the efficiency (measuring the processing time) of each searching algorithm using different testing cases, such as searching the employee with lowest salary, median salary etc.
Step by Step Solution
3.50 Rating (157 Votes )
There are 3 Steps involved in it
import random import time class Worker def initself firstname lastname department ... View full answer
Get step-by-step solutions from verified subject matter experts
