In the EXACT-4SAT problem, the input is a set of clauses, each of which is a disjunction of exactly four literals, and such that each variable occurs at most once in each clause. The goal is to find a satisfying assignment, if one exists. Prove that EXACT-4SAT is NP-complete.

Short Answer

Expert verified

The given statement has been proved.

Step by step solution

01

Statement for EXACT 4SAT

EXACT 4SAT is NP Problem.

The solution for any given problem each clause takes time to verify if there is any variable or literal of the clause is satisfied. For all clauses, it takes time to verify the solution in polynomial time.

02

Proving the statement

EXACT 4SAT is NP-Hard.

The 3-SAT problem’s input can be converted into the input to the EXACT-4-SAT in polynomial time.

The process to convert the input:

If the length of the clause is , then use a new clause and a new literal .

ijkijkQ1ijkQ1 ..….(1)

Also, when the length of the clause is 2, then replace it with two new literals and four new clauses.ijkijQ1Q2ijQ1Q2ijQ1Q2ijQ1Q2…...(2)

When the length of the clause is 1, then replace it with three new and literal and new clauses.

iijQ1Q2ijQ1Q2ijQ1Q2ijQ1Q2ijQ1Q2ijQ1Q2ijQ1Q2ijQ1Q2 ……(3)

Suppose each clause takes time to convert into a new clause and here are the total clauses they can be converted into , which is polynomial time. The output of the EXACT-4SAT problem can be converted into the output of the 3-SAT in polynomial time.

It can be done by removing new literal from each clause in polynomial time. Here are m clauses. The constant time for dropping new literals is .

03

Conclusion

The output for the EXACT-4SAT exists if there exists the output for the 3-SAT problem. From Equation (1), if the EXACT-4-SAT is true, meansijkQ1ijkQ1 is true, the reduced clause for 3-SAT ijkis always true, and the new literal value can be true or false.

Similarly, for clauses at Equations (2) and (3) clauses.

Thus, the output for EXACT-4-SAT exists if the output of the 3-SAT problem exists and vice-versa.

Therefore, the given statement has been proved.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

In the HITTING SET problem, we are given a family of sets {S1,S2K,Sn}and budget , and we wish to find a set H of size b which intersects every Si, if such an exists. In other words, we want HSiϕfor all i.Show that HITTING SET is NP-complete.

Prove that the following problem is NP-complete: given an undirected graph

G=V,Eand an integer k, return a clique of size kas well as an independent set of size k, provided both exist.

Sequencing by hybridization. One experimental procedure for identifying a new DNA sequence repeatedly probes it to determine which k-mers(substrings of length ) it contains. Based on these, the full sequence must then be reconstructed.Let’s now formulate this as a combinatorial problem. For any string x (the DNA sequence), let Γ(x)denote the multiset of all of its localid="1658905204605" k-mers. In particular, localid="1658904556515" Γ(x)contains exactly |x|-k+1elements.The reconstruction problem is now easy to state: given a multiset of strings, find a string x such that Γ(x)is exactly this multiset.

(a)Show that the reconstruction problem reduces to RUDRATA PATH. (Hint: Construct a directed graph with one node for each localid="1658904858295" k-mers, and with an edge from a to b if the last k-1characters of match the first localid="1658905395287" k-1characters of b.)

(b)But in fact, there is much better news. Show that the same problem also reduces to EULER PATH. (Hint: This time, use one directed edge for each k-mer.)

Give a simple reduction from 3D MATCHING to SAT, and another from RUDRATA CYCLE to SAT.

(Hint: In the latter case you may use variables xijwhose intuitive meaning is “vertex i is the j th vertex of the Hamilton cycle”; you then need to write clauses that express the constraints of the problem.)

In task scheduling, it is common to use a graph representation with a node for each task and a directed edge from task i to j task if i is a precondition for j. This directed graph depicts the precedence constraints in the scheduling problem. Clearly, a schedule is possibe if and only if the graph is acyclic; if it isn’t, we’d like to identify the smallest number of constraints that must be dropped so as to make it acyclic.

Given a directed graph G=(V,E), a subset E'Eis called a feedback arc set if the removal of edges E' renders G acyclic.

FEEDBACK ARC SET (FAS): Given a directed graph G=(V,E)and a budget , find a feedback arc set of role="math" localid="1658907144825" bedges, if one exists.

(a)Show that FAS is in NP.

FAS can be shown to be NP-complete by a reduction from VERTEX COVER. Given an instance (G,b)of VERTEX COVER, where G is an undirected graph and we want a vertex cover of size b, we construct a instance (G',b)of FAS as follows. If G=(V,E)has vertices v1,K,vnthen make G'=(V',E')a directed graph with 2n verticesw1,w1',k,wn,wn',andn+2|E|(directed) edges:

  • (wi,wi')foralli=1,2,k,n
  • (wi',wj)and(wj',wi)forevery(vi,vj)E.
  • Show that if G contains a vertex cover of size b, then G' contains a feedback arc set of size b .
  • Show that if G' contains a feedback arc set of size b, then G contains a vertex cover of size (at most) b. (Hint: Given a feedback arc set of size b in G', you may need to first modify it slightly to obtain another one which is of a more convenient form, but is of the same size or smaller. Then, argue that G must contain a vertex cover of the same size as the modified feedback arc set.)
See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free