Question: One - Third - Subset - Sum: Given the same inputs, determine if there exists a subset S { a 1 , a 2 ,

One-Third-Subset-Sum: Given the same inputs, determine if there exists a subset S{a1,a2,...,an}S \subseteq \{a_1, a_2,\dots, a_n\}S{a1,a2,...,an} such that:
The cardinality of SSS,S|S|S, is at most n/3\lfloor n /3\rfloorn/3,The sum of the elements in SSS equals BBB, i.e.,a in Sa=B\sum_{a \in S} a = Ba in Sa=B.
Goal:
Prove that if One-Third-Subset-Sum has a polynomial-time algorithm, then Subset-Sum also has a polynomial-time algorithm.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!