I am working on some review problems right now and am extremely stuck on how to solve problem - any help would be so appreciated. We are told to consider the following combinatorial problem:
Unit Intersection: Let X = {1, 2,...,n}. Given a family of subsets $S_1,...,S_m$ of X, determine whether there is a subset T of X such that for all i,|T ∩ $S_i$| = 1 ?
I am then trying to prove that Unit Intersection is NP-complete using a reduction from Exactly-One-3SAT. In the Exactly-One-3SAT problem, we are given a 3CNF formula, and need to decide whether there is an assignment to the variables such that every clause contains exactly one true literal. In a 3CNF formula, every clause has at most three literals. A clause in a 3CNF formula may contain repeated literals.
I've been working for hours trying to find a way to solve this problem, but am so stuck right now. Thank you in advance for any help.
Your intuition for a good problem to use for NP-complete reduction is on the mark. Given a 3-SAT formula, with $m$ variables, add clauses $(x_i$ OR (NOT $x_i$)) for each variable $x_i$. Then for each clause, create the two or three element subset $S_j$ where the elements are variables or negations of variables appearing in the clause, which are considered distinct elements. Then let $X$ be the union of all the elements (variables and negations of variables). If you ever choose a variable AND its negation as elements of $T$, then there will be a clause that has intersection with $T$ of size 2 or more. So in order for $T$ to have intersection of size 1 with every subset, only one variable $x_i$ or its negation is chosen to be an element of $T$ (but not both). Thus this will give you a satisfying assignment to your original Exactly-One-3SAT problem.