subject

The acme turbo-encabulator machine. you are given a list of jobs that can be run on your acme turbo- encabulator machine. each job starts at a certain time and ends at certain time. in addition, by running a job, you earn a certain amount of money. from the given list, you want to run as many jobs as possible so as to maximize the amount of money you earn. however, because you bought the most basic turbo-encabulator model (instead of the deluxe model), you are only able to run one job at a time on the machine. that means if the scheduled running times of two jobs overlap, you cannot run them both. your task is to design an algorithm that takes as input a list of jobs, and outputs the set of jobs that will maximize your earnings, subject to the constraint that you are only able to run one job at a time. assume that the input consists of n jobs, where for j = n, the description of the jth job is the triple (sj, fj, ej), where s; is the start time of the job, fi is the finishing time of the job, and e; the the amount of money you earn by running the job. show how to efficiently solve this problem using dynamic programming. you only need to give an algorithm that computes the optimal earnings, and not an optimal set of jobs itself. your algorithm should run in time o( hints: first, sort the jobs by increasing finishing time; second, for each job j, compute p[] as the largest index i

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:10
Write an application that allows a user to enter the names and birthdates of up to 10 friends. continue to prompt the user for names and birthdates until the user enters the sentinel value “zzz” for a name or has entered 10 names, whichever comes first. when the user is finished entering names, produce a count of how many names were entered, and then display the names. in a loop, continuously ask the user to type one of the names and display the corresponding birthdate or an error message if the name has not been previously entered. the loop continues until the user enters “zzz” for a name. save the application as birthdayreminder.java.
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
You know the right answer?
The acme turbo-encabulator machine. you are given a list of jobs that can be run on your acme turbo-...
Questions
question
Chemistry, 07.05.2021 01:00
Questions on the website: 13722362