Design dynamic programming algorithm

Assignment Help Basic Computer Science
Reference no: EM132818948

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: EM132818948

Questions Cloud

What are the proportions of the total cases for each payer : Your facility has 2000 cases in the following payer mix: 40% commercial insurances. What are the proportions of the total cases for each payer
What think are the top three biggest risks for investors : For your initial post, assess what you think are the top three biggest risks for investors associated in bond investments, and explain why.
Identifying learning and development needs : Explain each in 50-100 worss, how the following tools and methods can be used for identifying learning and development needs:
Prioritized gender equality and women in leadership : -From the very founding of the company, Gap seems to have prioritized gender equality and women in leadership. Many companies were not founded with such values
Design 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
Contrast the 10 steps in the data mining process : Contrast the 10 steps in the Data Mining Process. Which step takes the most effort and which step may need the least amount of effort?
What are the monthly payments for a thirty-year mortgage : At the end of the ten-year term, the company would repay the $25 million principal. What are the monthly payments for a thirty-year mortgage
How robotic processing automation will affect international : Express your opinion regarding how robotic processing automation (RPA) will affect international accounting and auditing professionals.
Characteristics that you feel are important for a leader : There are three personal characteristics that determine a person's leadership style. These are three: Self-awareness, Communication, and Empathy.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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