I see. Two different items with the same values and weights. Gotcha.
In reply to Re^5: knapsack problem solved by regex by BrowserUk in thread knapsack problem solved by regex by rubasov