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, 22.06.2019 14:30
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
question
Computers and Technology, 22.06.2019 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
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
English, 18.03.2021 01:00
question
Chemistry, 18.03.2021 01:00
question
Mathematics, 18.03.2021 01:00
question
Mathematics, 18.03.2021 01:00
Questions on the website: 13722360