Give a polynomial-time algorithm to find a subset

Assignment Help Basic Computer Science
Reference no: EM13307435

Some of your friends have recently graduated and started a small company, which they are currently running out of their parents' garages in Santa Clara. They're in the process of porting all their software from an old system to a new, revved-up system; and they're facing the following problem. They have a collection of n software applications, {1, 2,...., n}, running on their old system; and they'd like to port some of these to the new system. If they move application i to the new system, they expect a net (monetary) benefit of bi >= 0. The different software applications interact with one another; if applications i and j have extensive interaction, then the company will incur an expense if they move one of i or j to the new system but not both; let's denote this expense by xij >= 0.

So, if the situation were really this simple, your friend would just port all n applications, achieving a total benefit of Si bi. Unfortunately, there's a problem. Due to small but fundamental incompatibilities between the two systems, there's no way to port application 1 to the new system; it will have to remain on the old system. Nevertheless, it might still pay off to port some of the other applications, accruing the associated benefit and incurring the expense of the interaction between applications on different systems.

So this is the question they pose to you: Which of the remaining applications, if any, should be moved? Give a polynomial-time algorithm to find a subset S of {2, 3,..., n} for which the sum of the benefits minus expenses of moving the applications in S to the new system is maximized.

Reference no: EM13307435

Questions Cloud

Write a phone book program : When phone book enties are displayed all data members will be displayed. Create a friend function that overloads the
Calculate the work done and the heat transfer : Calculate the work done and the heat transfer. Hint: Use the ideal gas law pv = RT to nd the temperature at the end of compression. Take R = 0.287 kJ/kg.K and cv = 0.718 kJ/kg.K.
Give a polynomial-time algorithm for the following problem : Give a polynomial-time algorithm for the following problem. We are given a binary tree T = (V, E) with an even number of nodes, and a nonnegative weight on each edge.
Determine the centroid-moment of inertia and section modulus : THE HOME DEPOT IN RED HOOK ,BROOKLYN IS LOOKING TO RENOVATE THEIR STEEL ROOF TRUSS.YOU HAVE BEEN ASKED TO DETERMINE THE CENTROID,MOMENT OF INERTIA,SECTION MODULUS AND RADIUS OF GYRATION OF THE DOUBLE ANGLE.
Give a polynomial-time algorithm to find a subset : So this is the question they pose to you: Which of the remaining applications, if any, should be moved? Give a polynomial-time algorithm to find a subset S of {2, 3,..., n} for which the sum of the benefits minus expenses of moving the application..
What frequency is being played in this picture : A pipe filled with natural gas [methane (CH4)] is punctured by a line of small holes 1.00 cm apart down its entire 2.2-m length. What frequency is being played in this picture
By what percentage does amplitude of oscillation decrease : A 9.60 kg object oscillates at the end of a vertical spring that has a spring constant of 1.65*10^4 N/m.  By what percentage does the amplitude of the oscillation decrease
What is the elongation of a rectangular bar to an axial load : What is the elongation of a rectangular bar (cross section 2 inch * 2 inch length 4 ft) When it is subjected to an axial load of 80,000 lbs. Assume the material of the bar has the following properties G = 7,700 KSI, V =0.30
Find the effective emf and internal resistance : Two batteries of emf and internal resistance e1,2 and r1,2 are connected in parallel. Find the effective emf and internal resistance

Reviews

Write a Review

Basic Computer Science Questions & Answers

  The evolution of e-marketing tools

The Evolution of E-Marketing Tools

  Ways to send these postcards to friends

There are k types of postcards, each with limited amount. Let there be ai copies of i-th postcard. How many ways are there to send these postcards to n friends?

  Ways to avoid communication pitfalls

Based on the section on "Watch out for communication pitfalls" in the Bateman and Snell text, describe some ways that Lei could have avoided this situation.

  Calculate and display the total retail value of all products

It should calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the application should stop looping display the final results.

  Explain arithmetic-equality and quanti reasoning

Arithmetic, equality, and quanti reasoning. As it does simplication, automatic rewriting, and records sequent formulas in decision procedure database.

  How many bits are used for memory addresses

How many bits are used for memory addresses

  Let''s try to make inheritance

Let's try to make inheritance a little less abstract and a little bit more concrete. In order to do this, we will model a simple inheritance relationship

  Explain the operation of the mips andi instruction

Illustrate your answer with an appropriate example. In your answer you must provide details of the andi instruction format and of what each field in that instruction format does and how an andi instruction is identified.

  Create a jsp that returns the name of the browser

I need to create a JSP that returns the name of the browser that is being used to display the page

  Find out the number of candidate keys

Find out the number of candidate keys

  How can build 32bits shift left logical or shift right

how can i build 32bits shift left logical or shift right arithmetic with logisim?

  Give the contents of eax

in each additional instruction in this problem, assume that EAX contains a given contents before the instruction is executed, and give the contents of EAX as well as the values of the CF, OF, SF, and ZF flags after the instruction is executed:

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