

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!


A perfect matching of a graph is a matching in which every vertex is matched. Let G = (X ∪ Y, E) be a bipartite graph with |X| = |Y |. Prove, using the max-flow min-cut theorem, that G has a perfect matching if and only if |A| ≤ |N (A)| for every subset A ⊆ X, where N (A) denotes the set of all vertices adjacent to vertices in A.
Prove that 2 - SAT ∈ P.
Note: While 2 - SAT ∈ P, its optimization version MAX- 2 - SAT is NP-Hard, as shown in Problem 5.
Let ϕ be a CNF formula. A not-all-equal (NAE) assignment to the variables of ϕ is an assignment where each clause of ϕ contains two literals with unequal values. Thus an NAE-assignment satisfies ϕ without yielding three true literals in any clause. NAE-SAT is the following decision problem: Given a 3 - SAT instance ϕ, decide whether ϕ has an NAE-assignment.
A cut of an undirected graph G = (V, E) is a partition of the vertices V = A ∪ B (with A ∩ B = ∅). The size of a cut is defined as the number of edges crossing the cut. MAX-CUT is the following optimization problem:
Given a graph G = (V, E), find a cut of G with the maximum size. By reduction from NAE-SAT, prove that unless P = NP, there is no polynomial- time algorithm for MAX-CUT.^1
Hint: For simplicity we may assume that for each variable x, no clause of ϕ contains both x and ¯x since such a clause is clearly satisfied by any assignment and thus can be removed. Let ϕ be a NAE-SAT instance with n variables and k clauses. Construct a graph G with 6nk vertices as follows: Each variable xi corresponds to 6k vertices – 3k labeled xi and 3k labeled ¯xi. For each i ∈ { 1 ,... , n}, connect each xi vertex with each ¯xi vertex (for a total of 9k^2 edges). For each clause in φ, select three vertices labeled by the literals in that clause and connect each pair of them by an edge. Avoid selecting the same vertex more than once. (This is possible as there are 3k vertices for each literal/label.) Show that ϕ ∈ NAE-SAT if and only if G has a cut of size at least 9k^2 n + 2k.