Reduction: ZOE → Subset Sum
ZOE:
Given , find consisting of 0-1 entries that
Subset Sum:
- Special case of Knapsack
- Every value of item equals to its weight
- Find a subset of item that sum of their values equals to exactly
Reduction with two special cases of ILP:
- One with many equations but only 0-1 coefficients
- The other with a single equation but arbitrary integer coefficients
- Reduction based on the idea that: vectors can encode numbers!
We’re looking for a set of columns of that added together can make up a vector of all 1s.
Think columns as binary integers (from top to bottom), we’re looking for a subset of the inegers that add up to .
But one thing spoils the connection between 0-1 vectors and binary integers: CARRY.
- even when the sum of corresponding vectors is not .
- Easy to fix: think of column vectors not as integers in base 2, but in base ⇒ one more than # of columns
- At most integers added, there can be no carry