

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Instance: A positive integer q, a set of 3q distinct objects partitioned into three sets of q objects W, X, and Y. And, a set of s "triples" of the form (a, b, c) where a W, b X, and c Y. Question: Does there exist a subset of exactly q triples containing all of the 3q objects? 3–SAT 3–DM 3–DM is clearly in NP. Consider an arbitrary instance of 3–SAT, U = {u 1 , u 2 , …, um} and a set of m clauses C 1 , C 2 , …, Cm. Each Ci contains exactly 3 variables of the form u or u'. Construct W to be {ui[j], u'i[j] | for 1 ≤ i ≤ n and 1 ≤ j ≤ m}. Note: u 1 [1], u 1 [2], … , u 1 [n] all correspond to Boolean variable ui. while u' 1 [1], u' 1 [2], … , u' 1 [n] all correspond to the complement of ui. Later triples, corresponding to Boolean variables in, say, clause j, will force us to "select" a triple containing ui[j]. If ui also appears in clause k, we must also select the triple containing ui[k], etc. Then, of course, none of these triples can ever force us to select u'i[j]. But, since u'i[j] (and, u'i[k], etc) is a member of W, it must be selected in some triple. We first need a set of triples that select either all or none of u 1 [1], u 1 [2], … , u 1 [n], and none or all of u' 1 [1], u' 1 [2], … , u' 1 [n]. These are the T triples: (ui[j], ai[j+1], bi[j]) and (u'i[j], ai[j], bi[j]) for 1 ≤ i ≤ n, and 1 ≤ j ≤ m. {Note, when j = m above, j+1 cycles to be 1. a's and b' will not appear elsewhere} Observations: (1) If any ui[j] is selected then ui[k] for 1 ≤ k ≤ m must be selected and no u'i[k] can be selected. (2) If any ui[j] is NOT selected then ui[k] for 1 ≤ k ≤ m CAN NOT be selected and EVERY u'i[k] must be selected. Satisfaction. We need a set of triples whose selection corresponds to a clause and assigning one of it's Boolean variables to true.
Suppose clause j is {u 10 , u' 7 , u' 25 }. Create the following three triples (and new objects s 1 's and s 2 's which do not appear elsewhere): (u 10 [j], s 1 [j], s 2 [j]) (u' 7 [j], s 1 [j], s 2 [j]) (u' 25 [j], s 1 [j], s 2 [j]) Thus, we must select exactly one of these three. Create the corresponding triples for each clause of 3-SAT. We now have W = {ui[j], u'i[j] | 1 ≤ i ≤ n and 1 ≤ j ≤ m} and |W| = 2mn. X = {ai[j] | 1 ≤ i ≤ n and 1 ≤ j ≤ m} {s 1 [j] | 1 ≤ j ≤ m} and |X| = mn+m Y = {bi[j] | 1 ≤ i ≤ n and 1 ≤ j ≤ m} {s 2 [j] | 1 ≤ j ≤ m} and |Y| = mn+m Let q equal 2mn. Theorem. An instance of 3–SAT is satisfiable if and only if there are |X| triples that can be selected so that every object in X and Y are selected exactly once each, and no object in W is selected twice. But, this is not (quite) 3–DM. Exactly mn+m triples have been selected (the number of objects in each of X and Y). So, there are mn–m objects inW that have not been selected. We need to add mn–m objects to each of X and Y and sufficient triples to make sure the mn–m unselected objects in W can be selected by exactly mn–m triples. We can do this by adding g 1 [k] to X and g 2 [k] to Y, for 1 ≤ k ≤ mn–m. Now, add triples, for 1 ≤ k ≤ mn–n, (ui[j], g 1 [k], g 2 [k]) for 1 ≤ i ≤ n, and 1 ≤ j ≤ m, and (u'i[j], g 1 [k], g 2 [k]) for 1 ≤ i ≤ n, and 1 ≤ j ≤ m. We can select exactly mn–m of these to cover any set of mn–m unselected W objects.