Reduction: 3D Matching → ZOE
ZOE: given a matrix with entries, and we must find a vector such that the equations
are satisfied.
To express 3D matching to ZOE(m boys, m girls, m pets, and n boy-girl-pet triples), we have variables one per triple, meaning if the triple is chosen(1 for chosen, 0 for not) for the matching. Suppose for each boy/girl/pet the triples containing him/her/it are , then the appropriate equation
Which states that exactly one of these triples must be included in the matching.
