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

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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