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 12:30
Antifreeze is not considered a hazardous waste by the epa unless it is used or otherwise becomes contaminated. true or false?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
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
History, 26.08.2019 23:00