# Tag Info

If I have realized the problem, I think this problem is more similar to matching problem than knapsack problem. In other words, you can introduce a bipartite graph with two sets $S$ of objects (A, B, ...