- #1
jetoso
- 73
- 0
Is it possible to show that the SUBSET-SUM problem can be solved in polynomial time if the target t is given in unary?
We know that the subset sum problem consist on finding a subset S' of numbers from a set S such that its sum equals t.
If t is unary, say if t=3 then t=111, how can we find a polynomial-time algorithm?
We know that the subset sum problem consist on finding a subset S' of numbers from a set S such that its sum equals t.
If t is unary, say if t=3 then t=111, how can we find a polynomial-time algorithm?