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

  Explain elicitation of unb course registration system

As a system analyst to do requirement elicitation of UNB course registration system, use an example to tell how you can apply this technique to your elicitation task.

  Star life cycle model

interface design proces, Star Life Cycle as a model for interface Design, Nielsen's usability principles, Shneiderman's eight golden rules

  Write down critical success factors for project manager

Write down the critical success factors for project manager? what skills must managers look for when hiring someone who would be successful in this job?

  Build an entity relationship diagram for hospital

Build an Entity Relationship Diagram(ERD) for the following hospital scenario. For your Patient entity show its attributes . Highlight the key attribute in red.

  Create an algorithm using pseudo code

Create an algorithm, with the help of pseudo code, to perform one of the following tasks, string of numbers, identify all of the substrings that form numbers that are divisible by 3.

  Explain the importance of software testing

Evaluate the issues and challenges associated with software engineering.  Compare and contrast software development process models.

  Methodology for use in the gdtc is the project

Your supervisor is a aware of many different system life cycle models and requires you to describe, using diagrams and an appropriate range of at least two models and to distinct approaches that are common usage.

  Define the association names and the multiplicities

A domain model. For each conceptual class you should define the attributes and their data types. For associations, you should define the association names and the multiplicities on both ends, as well as association names (i.e. roles) where applica..

  Brainstorming and delphi technique for risk identification

Discuss the difference between using brainstorming and the Delphi Technique for risk identification and determine some of the advantages and disadvantages of each approach?

  Bank customer withdrawing money from an atm

Describe (in a one to two (1-2) page narrative) a use case, complete with typical and alternate courses, that documents the event of a bank customer withdrawing money from an ATM.

  Identify resource requirements

The purpose of the BIA is to identify and prioritize system components by correlating them to the business process(es) the system supports, and by using this information to characterize the impact on the process(es) if the system were unavailable.

  Create flow chart which gets customer account data

Create the flow chart which gets customer account data which comprises the account number, customer name, and balance due.

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