Give a polynomial-time algorithm for the following problem

Assignment Help Basic Computer Science
Reference no: EM13307437

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. We wish to find a partition of the nodes V into two sets of equal size so that the weight of the cut between the two sets is as large as possible (i.e., the total weight of edges with one end in each set is as large as possible). Note that the restriction that the graph is a tree is crucial here, but the assumption that the tree is binary is not. The problem is NP-hard in general graphs.

Reference no: EM13307437

Questions Cloud

Find the depth of the submarine : A stationary destroyer is equipped with sonar that sends out pulses of sound at 35.000 MHz. If the speed of sound in seawater is 1.57 km/s, find the depth of the submarine
Determine the work done and the heat transfer : Water, initially dry saturated vapour at 4 bar, lls a closed rigid con- tainer. The water is heated until its temperature is 400C. Determine the work done and the heat transfer.
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

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a program segment that translates an integer value

Write a program segment that translates an integer value into a letter grade. Between 90 and 100 the segment should output 'A', between 80 and 89 it should output 'B', between 70 and 79 it should output 'C', between 60 and 69 it should output 'D' ..

  Return string made of the first n characters of the string

Given a string and an int n, return a string made of the first n characters of the string, followed by the first n-1 characters of the string, and so on

  Write recurrence relation corresponding to pseudo-code

Write the recurrence relation corresponding to the pseudo- code, don't forget the cost of the base case. iii. Write the solution of your recurrence, showing how you have solved the recurrence.

  Using wireshark note the ip address and tcp port number

Using wireshark note the IP address and TCP port number used by your client computer (source) to transfer the file to any FTP server?

  Create a script that presents a movie guessing game

create a script that presents a Movie guessing game. Allow the users to guess the best picture award from last year. Allow them to guess the word letter-by-letter by entering a character in a form.

  When using uml to describe the classes

When using UML to describe the classes, what is UML? What does a + or - signify

  Support desktop computers in small company

Static IP address of server is 192.168.45.200. Employees will open their Web browser and enter personnel.mycompany.com in URL address box to browse Web site.

  Evaluation process to seven-step acquisition model

Discuss in scholarly detail the acquisition evaluation process to the Seven-Step Acquisition Model.

  Drivers for digital dashboards found in automobiles

Believe or not digital dashboards can be found in automobiles. In fact, Mossberg (2010) wrote article titled, "Ford Drives Digital Dashboards to Next Level. Are drivers ready for this kind of technology?

  Return true if sum of all array elements greater than sum

public boolean sumGreaterThan(double[] array, double sum) Given a filled array of double array elements, return true if the sum of all array elements is greater than sum. The array may be empty.

  Determine the date in opening of letter

If /home/jenny/draft and /home/alex/letter are links to same file and following sequence of events occurs, what will be date in opening of letter? Alex gives command vim letter.

  Write one java statement to display the string

Write one Java statement to display the string "The average is xxx" to the console, where the xxx displays the value from the double variable sum divided by 3. Make sure the value is displayed with 3 digits following the decimal point.

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