subject

After running the teleportation delivery company Algo Express for many years, you discover the power of dynamic programming. You leave the company to start a new venture (DPAlgo Express) that can process very big delivery orders. In particular, each order now takes several days for the teleportation machine to complete. Suppose on a certain day, n customers give you packages to deliver. Each delivery i should be made within di days, takes ti days to deliver, and the customer pays you pi dollars for doing it on time (if you don't do it on time you get paid 0 dollars). On-time delivery means that if package i is due within di-k days, the delivery should be completed on or before day k to be on time (that is, it should start on or before day k -ti1). As before, your teleportation machine can only make one delivery at a time. Input: A set of n deliveries with due dates di E N, di payments Pi > 0 for each delivery i 61,-.. , n} 1, number of days needed for delivery ti EN, t 1 and Example to iron out the semantics of the input-Suppose we have two deliveries with di = 1, t1 = 1 and d2 = 4, t2-3. Then we can schedule the first delivery on day 1, the delivery will take the entire day and finish on day 1 We can then schedule the second delivery on day 2, which will finish on day 4. In this case, both the deliveries are completed on the day of their deadline and thus we get their respective profits. Describe and analyze an efficient algorithm to determine which deliveries to make and in what order so as to maximize your profit. (Note: unlike the previous version of the problem, deliveries may now take more than one day). Your algorithm should have a pseudo-polynomial running time running time polynomial in n and T, where T is the latest deadline among all deliveries. Unfortunately your "greedy" competitor from homework 4, Algo Express, is catching up to your lead in the very big delivery business. You decide to focus on maximizing your market share to beat out the competition. To do this, you have decided to neglect profits and only maximize the number of deliveries that you make (remember - deliveries may still take more than 1 day each). Describe and analyze a polynomial time algorithm to determine which deliveries to make and in what order so as to maximize the number of deliveries you make. The input to the problem is the same as before, but this time your algorithm should run in time polynomial in n alone We recommend using dynamic programming for each of the above parts. Please provide a brief proof of correctness for your recursive equations.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:20
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
Answers: 1
You know the right answer?
After running the teleportation delivery company Algo Express for many years, you discover the power...
Questions
question
Mathematics, 23.11.2020 16:40
question
Chemistry, 23.11.2020 16:40
question
World Languages, 23.11.2020 16:40
question
Mathematics, 23.11.2020 16:40
question
Mathematics, 23.11.2020 16:40
Questions on the website: 13722363