Question: Problem 2 . ( 1 8 points ) We have a set of n numbers S = { x 1 , x 2 , x
Problem points We have a set of n numbers Sx x x xn where each number is represented using b bits. We want to partition the elements in Sinto two disjoint sets U and V so that the sum of the elements in U equals the sum of the elements in V Example If S then Uand Va What is the largest possible value forn i xi expressed in terms of b and nb What algorithm that was taught in class does this problem remind you ofGive a brief description of the problem and the name to get credit. You can use an example.c What is the running time for the algorithm from class? Make sure to define whatever parameters you use to describe the running time. d Explain your algorithm for partitioning Sinto Uand V Use parts ab and c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
