Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions: All answers must be proved: it is not sucient to simply state the answer. All answers must be written in your own words. Treat

Instructions: All answers must be proved: it is not sucient to simply state the answer. All answers must be written in your own words. Treat single arithmetic operations (addition, subtraction, multiplication, and division) as constant time operations. Note: Please answer me about each thing that is asked in question. I am sending time posting this same question becasue of not satisfy with answer. image text in transcribed

3. There is a set of n employees E En, and a set of tasks T,..., Tn. Each employee must be assigned to one task, and every task must be assigned to an employee. Each task T has a difficulty level dit and each employee has a skill level si. The goal is to match employees to tasks such that the average difference between each employee's skill level and his or her task's difficulty level is minimized. In other words, if employee Ei is matched to task T we wish to minimize y(), Part a: Consider the algorithm that begins with with employee E, and as signs that employee the task with the difficulty level that is closest to E1's skill level. Remove E1 and the selected task from the pool, and assign em- ployee E2 the task with difficulty level closest to Ee's skill level. Repeat until all employees and tasks are matched. Give a counterexample showing when this method fails to find the optimal solution. Part b: Describe an om log n) algorithm to find the optimal solution

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

LO1 Discuss four different views of motivation at work.

Answered: 1 week ago

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago