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

1 Expert Approved Answer
Step: 1 Unlock

import random import time class Worker def initself firstname lastname department ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!