excuse me, could someone explain to me the reduction of the problem 3-dimensional matching to subset sum? I was reading Jon Kleinberg's design algorithms book and when I came across this reduction I didn't understand how it really works:
"So consider an instance of 3-Dimensional Matching specified by sets $X,Y,Z$, each of size n, and a set of m triples $T$ $\subseteq$ $X x Y x Z $. A common way to represent sets is via bit-vector:Each entry in the vector corresponds to a different element, and it holds a 1 if and only if the set contains that element. We adopt this type of approach for representing each triple t = $(x_i,y_j,z_k)$ $\in$ $T$: we construct a number $w_t$ with $3n$ digits that has a 1 in position $i,n+j$ and $2n+k$, and a 0 in all other positions. In other words, for some base $d>1$, $w_t = d^{i-1} +d^{n+j-1}+d^{2n+k-1}$."
To begin with, it is not very clear to me what $X,Y,Z$ sets are or what they represent, as I understand they represent certain digits, but I cannot understand how these inputs work or what they really represent.
In the case of the elements of $T$, according to what I see, they are the elements of the "original" set of Subset Sum represented with vectors.
Now if we wanted to know if in the set A = {1,2,4,10,200}, there is a subset of A whose sum is 16, how could we use the 3dm to represent this example, who would be $X,Y,Z$ and how would it be? represents each number in its vector form?
I'm really stuck with this part. I would really appreciate it if you could help me. Thank you for your consideration.
P.S: I would also greatly appreciate recommendations for other books or resources where the examples of reductions are explained in a little more detail.