Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (40 points) We have n jobs to schedule on one machine. For each job we know the processing time (how long it would take

image text in transcribed
2. (40 points) We have n jobs to schedule on one machine. For each job we know the processing time (how long it would take to process it on our machine). Each job also has a deadline (when it should be done). Since there is just one machine, we have to execute jobs in an order (one after another). After executing each job we will receive a reward equal to df, where d is the deadline for the job and f is the finish time (we start executing jobs at time 0 ). We have to execute all the jobs, even if it will result in negative reward (we finish it after its deadline). Help to find the best ordering to execute the jobs which maximize the total reward. For example, if there are 3 jobs with the following deadline and processing time: We can order the jobs: job 3 , job 1, job2. In this order: job3 finishes at time 5 , reward 15. Jobl finishes at time 11 , reward is 1, job 2 finishes at time 19 , reward will be 4. In total we receive 15+(1)+(4)=10 Write an algorithm that takes two arrays (deadlines and processing times) and tell up what is the maximum reward we can get. What is the time complexity

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2019 Wurzburg Germany September 16 20 2019 Proceedings Part 2 Lnai 11907

Authors: Ulf Brefeld ,Elisa Fromont ,Andreas Hotho ,Arno Knobbe ,Marloes Maathuis ,Celine Robardet

1st Edition

3030461467, 978-3030461461

More Books

Students also viewed these Databases questions

Question

4. EMC Corporation

Answered: 1 week ago

Question

6. Vanguard

Answered: 1 week ago