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

  What is the minimum cost plan to crash the project

Build a spreadsheet model of the project. Use Solver to find the optimal solution. What's the minimum cost plan to crash the project?

  Propose a wiring plan for network servers

Propose a wiring plan for network servers.

  Imagine that a doubly linked list "header"

Assume that a doubly linked list "header" stores the elements of a priority queue. make use of the function pop(), which deletes the element with the largest value from the list (priority queue).

  Write the content of the array

Use a second loop to sum the values stored in the array after the prices of all the books have been read. Write the content of the array to a second file.

  What symbols would you use to depict the given situation

What symbols would you use to depict the following situations on a structure chart? A function occurs multiple times before the next module is invoked. A function is continued on the bottom of the page of the structure chart.

  Optimize a multiprogrammed batch system

Contrast the scheduling policies you might use when trying to optimize a time-sharing system with those you would use to optimize a multiprogrammed batch system.

  Discuss the ajax model in relation to good software design

Discuss the AJAX model in relation to good software design, and the essence of the quoted question. Will AJAX further promote the development of Web based software, or is it just another fad?

  Draw gantt chart that shows completion time for each process

Draw a Gantt chart that shows the completion times for each process using first-come, first-served CPU scheduling.

  Describe the features and capabilities

Select an Open Source system or application and describe the features and capabilities. How well does that system or application compare

  Compute and display the number of movie reviews

Write a Java program that will read a text file (named MovieReviews) that contains an unknown number of movie review scores, one per line.

  Create an application that lets user enter an objects mass

Create an application that lets the user enter an object's mass and then calculates its weight. If the object weighs more than 1000 Newtons display a message.

  Use the techniques to do some black-box testing

how to Download a shareware version of some commercial software.

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