How many hours to spend on each project

Assignment Help Computer Engineering
Reference no: EM13706592

Question: Consider it's nearing the end of the semester and you're taking n courses, each with a final project that still has to be done.

Each project will be graded on the given scale: It will be assigned an integer number on a scale of 1 to g > 1, higher numbers being better grades.

Your goal, of course, is to maximize your average grade on the n projects.

You have a total of H > n hours in which to work on the n projects cumulatively and you want to decide how to divide up this time.

For simplicity, assume H is a positive integer, and you'll spend an integer number of hours on each project. To figure out how best to divide up your time, you've come up with a set of functions f fi: i = 1, 2, . . . , n (rough estimates, of course) for each of your n courses; if you spend h H hours on the project for course i, you'll get a grade of fi(h). (You may suppose that the functions fi are non decreasing:

if h < h0, then fi(h) < fi(h0).

So the problem is: Provided these functions f fig, decide how many hours to spend on each project (in integer values only) so that your average grade, as computed according to the fi, is as large as probable. In order to be efficient, the running time of your algorithm should be polynomial in n, g, and H; none of these quantities should appear as an exponent in your running time.

Can someone demonstrate me how to write a proper code for this problem and how to complete it. Thanks

Reference no: EM13706592

Questions Cloud

History of an employees hours : The time clock shall keep a history of an employee's hours for a two-week pay period. The application shall have the subsequent functionality:
Gaussian elimination : The solution should be the vector x and flag which takes a value of 0 if the algorithm was executed completely and 1 if it wasn't.
Print out the characters in the string : White a program that prompts the user to input a String and then print out the characters in the string one per line.
Output the number of vowels : Prompt the user to enter a string, and using a loop, count and output the number of vowels, and consonants the string contains. (You have to find methods from class.)
How many hours to spend on each project : Consider it's nearing the end of the semester and you're taking n courses, each with a final project that still has to be done.
Generate a random number and guess what the number is : Prepare a program in c++ that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again."
Develop the game using the concepts of cohesion : Develop the game using the concepts of Cohesion, Coupling and RDD, i.e., responsibility-driven design.
How different networking technologies function : How different networking technologies function. Using the Internet, research different network technologies.
Confirm the presence of malware on a system : Show five types of system information that can be obtained from the Windows Task Manager? Show how can you use this information to confirm the presence of malware on a system?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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