Describe data structure you will use to store opt value

Assignment Help Computer Engineering
Reference no: EM132188704

You are working on n different projects, but in m hours you are going on vacation. Imagine that for each project i, you had a function fi that told you how happy the people paying for project i would be if out your m available hours you devoted 0 = x = m to project i.

Imagine further that each such function has maximum value at most s, corresponding to the project being fully finished (and thus the clients being perfectly happy).

Give a dynamic programming for determining the most happiness you can generate for your clients by splitting your m hours among the n projects.

• Because of book-keeping rules, you can't spend fractional hours on a project.

• The functions fi are non-decreasing, i.e., for every project i, if t1 = t2, then fi(t1) = fi(t2).

• The running time of your algorithm must be O(n amb s c ) for some fixed integers a, b, c = 0.

Solve using Dynamic Programming:

1) Write the identity for the OPT value.

2) Explain why the identity holds.

3) Describe data structure you will use to store OPT value for the subproblems and the order in which you will fill out the entries in your data structure.

4) In the problems you are asked to return the solution ( not just the value of the solution), state the additional information you record which will allow you to retrace your steps and report an optimal solution.

5) Bound the running time by the size of the data structure and the work per entry in it.

Reference no: EM132188704

Questions Cloud

Predecessor relationships between tasks and resources : Suppose that we modified original table slightly to show following predecessor relationships between tasks and resources assigned to perform these activities
Simulation team competition begins : On Day 1 the Simulation Team Competition begins. Each team has completed a practice round, so should be familiar at how the simulation works.
Controversy or dispute for the party to seek legal advice : What is the principal reason that you felt that it was important at that point in the controversy or dispute for the party to seek legal advice?
Embrace diversity in friendships : Other recommendations are to learn a different language, embrace diversity in friendships, and to read and learn about other cultures.
Describe data structure you will use to store opt value : Describe data structure you will use to store OPT value for the subproblems and the order in which you will fill out the entries in your data structure.
Why would an administrator choose to use multiple : Why would an administrator choose to use multiple Registration Authorities when processing certificate requests?
Explain what mutual exclusion means in this scenario : You are working as a software engineer and you developed a multi-threaded program that uses a single global array of integers.
The functionality offered by the rsa and diffie-hellman : Explain what the following are: root certificates, self-signed certificates. Describe how they are used.
Configure and stylize hyperlinks in web pages : This is the second phase of the website project. For this phase you will add a 4th page to your site, and this page must contain a table.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why text in txtboxin is moved to txtboxout

You have a form with two text boxes, txtBoxIn and txtBoxOut, and a command button, cmdButton1. Write down the instructions such that when the button is selected, the text in txtBoxIn is moved to txtBoxOut.

  List three possible application areas of bluetooth

List three possible application areas of Bluetooth. What are different wireless local area network protocols? In what situation might you use free space optics?

  What concerns should be understood about data communications

What concerns should be understood about data communications being sent over wireless networks? Discuss the pros and cons of one method of transmission.

  Refined version of the multiplication hardware

Do the given multiplication of two 4-bit numbers (the leftmost bit is sign bit) by using the refined version of the multiplication hardware, and use decimal arithmetic to verify your results.

  Examples of suitable values for each of subsequent type

Give examples of suitable values for each of the subsequent type expressions. Do not use the empty list as the value for any list component.

  Estimate the time constant

Estimate the time constant (approximately 62.3% of the time to reach Level B) for the process vessel.

  Well-posed machine learning problemsa what is required to

well-posed machine learning problemsa what is required to dene a well-posed learning problem ?b here are two potential

  Write a program that behaves like the cp command

Write a program that behaves like the cp command when used without options, and with two ordinary filenames as arguments.

  Derive excitation tables for given circuit

For the following circuit, Complete the timing diagram starting with Y1Y2 = 00 (at time = 0). Derive excitation tables.

  What is scw and how is it used

What is SCW and how is it used? The SCW allows a security policy to be applied now or later. Why might a network administrator want to apply a policy later?

  How long does the computation take on a computer

How long does the computation take on a computer that can execute at a rate of 5 MIPS (millions of instructions per second)?

  Explain what you are doing so i can apply it elsewhere

I've imported an image using java fx and I can display it. I've created buttons to resize the image. (But not the code behind the buttons)

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