Forum Discussion
Combination Sum
"So basically Item a2 and a5 were not part of the items making up the total of R100 spent."
WHY NOT? What's the algorithm that lets one determine which were and which were not participating in the cost?
Unfortunately there's no particular algorhim, just need to know which Items make up the total spend. Can be random, sometimes all the items add up to the total spend and sometimes only a few items add up to the table spend.
- Anonymous5 years agoNot applicable
You're out of luck here. To determine which items could constitute the whole (without any other constraints on the problem) you'd need to check all the possible combinations of items. This is not feasible and it's not the kind of problem that PBI has been created to solve.
- SammyNed5 years ago
Helper I
Thank you for your feedback. At least now I can stop banging my head against the wall trying to figure something out. 😀