Question: ( 1 5 % ) The NP - complete SUBSET - SUM problem asks, given a set of non - negative integers S and a
The NPcomplete SUBSETSUM problem asks, given a set of nonnegative integers and
a target whether whether or not a subset from a list of integers can sum to a target value. For
example, consider the list of If the target then there are two subsets that
achieve this sum and If then there are no solutions. The AVERAGESUM
problem asks, given just a set of nonnegative integers whether or not a subset from a list of
integers can sum to the average of iei where is the number of elements in It
is similar to the SUBSETSUM problem, except now the target value is always the average value
in S Prove that AVERAGESUM is NPcomplete, or give a polynomialtime algorithm for it
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
