

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!


Test 5 sample
You can assume the following:
True. According to the hypothesis, CNFSAT which is N P-Complete is reducible to a problem L in P and hence every problem in N P is reducible to the problem L in P.
(a) Given a conjunctive-normal form Boolean formula F , give a polynomial time algorithm to decide if F is NOT a tautology. F is not a tautology iff there is a truth assignment for the variables that makes the formula evaluate to false. For a conjunctive normal form formula this can be tested by finding a clause in which no variable appears both as a positive literal and a negative literal. (b) Given a conjunctive normal form Boolean formula F , is there a polynomial time algorithm to decide if F is a tautology? Why? or Why not? The answer is yes. Run the polynomial time algorithm to decide if an input formula is not a tautology and negate the answer.
(Hint: Give a reduction from the k-COLORING problem to the exam-scheduling problem.) Given a graph G = (V, E) and an integer k output the following instance of the exam-scheduling problem: F = V. Let the edges in the graph be e 1 , e 2 , · · · , em. The number of students m is the number of edges. For 1 ≤ i ≤ m, let Ei be the endpoints of the edge ei. Let h = k.
INPUT: An undirected graph G = (V, E) with n vertices and an integer 1 ≤ k ≤ n. PROBLEM: Is there a clique (that is, a complete subgraph) of size ≥ k in G? Given a conjunctive normal form formula F with 3 literals per clause, create a graph G as follows: For all the literals in each clause create a vertex. Label the vertices with the literals. Add an edge between two nodes iff: (a) they do not belong to the same clause, and (b) the labels are not negations of each other.