![]() |
(3.1) |
INSTANCE A set of positive integersClearly, if we can solve subset sum problems in polynomial time, we can answer the subset sum decision problem in polynomial time. The converse is also true; we can ask an oracle which answers the subset sum decision problem in polynomial time whether there is a solution to the subset sum problem with weightsand an integer s.
QUESTION Does there exist a subset A' of A such that the sum of the elements of A' is s?