Design an dynamic programming algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM132819390

Question: Erica is an undergraduate student at USC, and she is preparing for a very important exam. There are n days left for her to review all the lectures. To make sure she can finish all the materials, in every two consecutive days she must go through at least k lectures. For example, if k = 5 and she learned 2 lectures yesterday, then she must learn at least 3 today. Also, Erica's attention and stamina for each day is limited, so for i'th day if Erica learns more than ai lectures, she will be exhausted that day.

You are asked to help her to make a plan. Design an Dynamic Programming algorithm that output the lectures she should learn each day (lets say bi), so that she can finish the lectures and being as less exhausted as possible(Specifically, minimize the sum of max(0,bi -ai)). Explain your algorithm and analyze it's complexity.

Reference no: EM132819390

Questions Cloud

Is this data cross-sectional or time series : You're looking to build a model which identifies the type of person that responded to your marketing campaign and purchased a new smartphone
Find what is the present value of stream of cash flows : $56,000 payments occur at the end of each of the next 24 years. If 8 percent is the discount rate, what is the present value of this stream of cash flows?
How much is the minimum price for the deal : David expected to sell 50,000 units of Monster Craz. How much is the minimum price for the deal, if a minimum targeted profit of $500,000 is expected?
How the allocation would be performed : Provide a simple example of how the allocation would be performed if your company paid $1,000,000 cash in total for a restaurant (land, building, and equipment)
Design an dynamic programming algorithm : You are asked to help her to make a plan. Design an Dynamic Programming algorithm that output the lectures she should learn each day (lets say bi).
Determine the total cost for replacing the machine : Williams Auto has a machine that installs tires. The machine is now in need of repair. Determine the total cost for replacing the machine
What you would like to learn for future study in the course : Write an essay of atleast 500 words on what you would like to learn for future study in this course. Write in essay format, not outline or bulleted.
How much should be recorded as the total cost : If all the rights are exercised, how much should be recorded as the total cost of the new investment through the exercise of share rights?
Calculate the direct material price and quantity variances : Use the variance formulas to calculate the direct material price and quantity variances and the direct labour rate and efficiency variances

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd