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 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
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, 28.05.2020 15:00
question
Mathematics, 28.05.2020 15:00
question
English, 28.05.2020 15:00
question
English, 28.05.2020 15:00
question
Computers and Technology, 28.05.2020 15:00
question
Mathematics, 28.05.2020 15:00
question
Mathematics, 28.05.2020 15:00
Questions on the website: 13722359