Which is the summation of all the given numbers

Assignment Help Software Engineering
Reference no: EM13330128

Suppose you have a procedure that can partition a set of positive integers into two equal weight subsets. How could you use this procedure to solve the subset-sum problem?

To solve this we use reduction. In which prove that subset-sum problem can be reduce to partition problem and visa versa.

The set B of n positive integers whose element summation is equal to an integer K.

Partition reduces to Subset Sum:

Calculate Sum = , which is the summation of all the given numbers. A partition Subset Sum if K = Sum/2.

Subset Sum reduces to Partition:

Calculate Sum = , which is the summation of all the given numbers.

Calculate some number x= Sum - 2K. Create new set A by add x to the set B {b1, b2,....., bn} {x}, where the summation now is B+x. it is possible to split the numbers in A into some subsets iff they can summing up to K:

Subset sum of B indicates partition of A means the set that adds up to Sum with x form a partition.

Partition of A indicates subset sum of B means the numbers which are put together with x must add up to K. Therefore, a partition exists iff some numbers in the B add up to K.

These reference could help you :

1. Bron, C. and Kerbosch, J. "Algorithm 457: Finding All Cliques of an Undirected Graph." Comm. ACM 16, 48-50, 1973.
2. Tomita, E.; Tanaka, A.; and Takahashi, H. "The Worst-Case Time Complexity for Generating All Maximal Cliques and Computational Experiments." Theor. Comput. Sci. 363, 28-42, 2006.

Reference no: EM13330128

Questions Cloud

Calculate tax liability : Calculate tax liability.
What is the impulse of the given nail : A 11kg hammer strikes a nail at a velocity of 8.7m/s and comes to rest in a time interval of 7.4ms, What is the impulse of the given nail
How fast does it move after the bullet emerges : A 23-g bullet traveling 270m/s penetrates a 2.2kgblock of wood and emerges cleanly at 215m/s. how fast does it move after the bullet emerges
Explain the half-reaction of common ion for o : What is the half-reaction of P(s) going to the most common ion for O? Hint: P is under N in the periodic table so, their most common charge should be the same.
Which is the summation of all the given numbers : Suppose you have a procedure that can partition a set of positive integers into two equal weight subsets. How could you use this procedure to solve the subset-sum problem?
Estimate the maximum height the ball reaches : A ball is thrown so that its initial vertical and horizontal components of velocity are 50 m/s and 15 m/s, Estimate the maximum height the ball reaches
Define the mass spectrum of an organic compound : The mass spectrum of an organic compound shows the relative abundances of M to be 69.72% and M 1 to be 6.033%. Assuming the peaks are caused by 12C and 13C isotopes, determine the number of carbon atoms in the compound. Natural abundances: 12C is ..
Find the torque acts on the loop : A circular wire loop whose radius is 15.0 cm carries current of 2.50 A. What torque acts on the loop
Explain what mass of ice melts : A mass of 95 g of ice at 0C is combined with 105g of water at 25 C the final temperature of the mixture is 0 C what mass of ice melts. (heat of fusion=333J/g specific heat capacities ice=2.09, liquid water =4.184)

Reviews

Write a Review

Software Engineering Questions & Answers

  Sketch the use case diagram for stillwater antiques

Sketch the use case diagram for the following circumstances Stillwater Antiques purchases and sells one-of-a-kind antiques of all kinds.

  Determine the output of the code sequenc

Determine the output of this code sequence? The user successively enters 3, 5, and -1.

  Create a communication and sequence diagram

Create a sequence diagram that shows an Owner generating a report regarding the maintenance of their current properties - Create a communication diagram.

  Sketch a dependency and er diagram

Sketch a dependency diagram. There are examples in reading assignments of dependence diagrams. In what normal form is this table?

  Explain the function of input controls

Explain the advantages and disadvantages of restricting user interfaces. (User interfaces can often be restricted, limiting the user's ability to navigate to other areas of the system, or out of the system.)

  Differentiate notions of drawing erd

Research some available notions of drawing ERD. Create a short but precise comparison among four notions. Choose any real world case like the enrollment system; create the ERD of selected case

  Draw a dfd for placing an order

Draw a  DFD (Context and  Level 1) for placing an order based on the E-R diagram shown here.

  Develop a detailed design to support the ccrd

A logical view (class diagram) showing all classes required to support the CCRD use case, including all required attributes methods, and inheritance, compositional, or using relationships.

  How project leader finds what user wants and needs

How can project leader find what user wants and needs. Point about observing the user is important step in gaining good understanding of the users needs.

  Data flow diagram for new customer support system

A context diagram, also called a Data Flow Diagram (DFD), documents the scope of the new customer support system. It focuses primarily on output from the system.

  Creating a grading program

Make a grading program that helps to determine letter grade based on your exam score. For example, when you put in exam score of eighty,

  Create a weather object using the no-argument constructor

Create a 'Weather' object using the no-argument constructor

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