Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 5 % ) The NP - complete SUBSET - SUM problem asks, given a set of non - negative integers S and a

(15%) The NP-complete SUBSET-SUM problem asks, given a set of non-negative integers S and
a target k, whether whether or not a subset from a list of integers can sum to a target value. For
example, consider the list of S={1,2,3,4}. If the target k=6, then there are two subsets that
achieve this sum {1,2,3} and {2,4}. If k=12, then there are no solutions. The AVERAGE-SUM
problem asks, given just a set of non-negative integers S, whether or not a subset from a list of
integers can sum to the average of S(i.e.1|S|iinS?i where |S| is the number of elements in S). It
is similar to the SUBSET-SUM problem, except now the target value is always the average value
in S. Prove that AVERAGE-SUM is NP-complete, or give a polynomial-time algorithm for it.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

6. Name the six virtues, and one related strength for each.

Answered: 1 week ago