What am I missing? I can see the solution for those 6 numbers {−2, −3, 15, 14, 7, −10} or is that the point, the more numbers you add, the longer it takes to solve and p=np is that it should get all the answers instantly?
Confuzzled!
Confuzzled!
The program should be able to work on any set given by the user.
the more numbers you add, the longer it takes to solve and p=np is that it should get all the answers instantly?
The more numbers there are, the longer it takes. If and only if P=NP, there is a solution which always finds the answer in polynomial time.