Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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.)

Short Answer

Expert verified

3D MATCHING to SAT:

Consider the set of edges, and define variable s where true indicates that an edge is chosen. Create add clauses with the set of edges and variables without repeating the items more than once.

RUDRATA CYCLE to SAT:

Define the variablesxijfrom the hint, and achieve the requirements as that each vertex appears exactly once in the cycle. The neighbors in the cycle is connected by an edge.

Step by step solution

01

Explain 3D-MATCHING and RUDRATA CYCLE

Consider the three sets boys, girls and pets and the compatibilities among them are specified by a set of triples. 3D-MATHCING aims to find disjoint triples and creates harmonious households. RUDRATA CYCLE search problem is to find the cycle that visits each vertex only once or no such cycle exists.

02

Step 2: Give a simple reduction from  3D  MATCHING to SAT


Consider a set of m edges containing three items. If a set of edges is chosen in such a way that every item appears in an edge not in more than one edge, is called a valid matching.

Define variablese1,e2,K,em, in which the true indicates that an edge is chosen. Let x be a k-vector of indices in which the item appears.

Create the clauses as follows:

  • Add clauseex1ex2Keak, ensures that the item appears at least once.

  • For every pair i,j{1kk}add clauseexi¯exi¯, ensures that the item appearance is not be repeated.

03

Give a simple reduction from RUDRATA CYCLE to SAT

Consider the variables xijthat represents the vertex i is the j th vertex in the RUDRATA CYCLE. It is required that each vertex appears exactly once in the cycle and the neighbors in the cycle are connected by an edge.

Adding a clause xi1xi2Kxinfor each vertex i, ensures that appearance of the vertex exactly once in the cycle. Adding clauses for each pair of vertices for each cycle ensures that the neighbors are connected by an edge in the cycle. Construction of SAT involves the creation of role="math" localid="1657619324977" nclauses with nentries each plus n3clauses with 2 entries each.

Therefore, the above reduction shows the reductions from RUDRATA CYCLE to SAT.

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

Show that for any problem in NP, there is an algorithm which solves n in time O 2pnwhere is the size of the input instance and p(n)is a polynomial (which may depend on ).

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.

STINGY SAT is the following problem: given a set of clauses (each a disjunction of literals) and an integer K , find a satisfying assignment in which at most K variables are true, if such an assignment exists. Prove that isNP -complete.

Determine which of the following problems are NP-complete and which are solvable in polynomial time. In each problem you are given an undirected graph G=(V,E), along with:

(a)A set of nodesLV , and you must find a spanning tree such that its set of leaves includes the set L.

(b)A set of nodes LV, and you must find a spanning tree such that its set of leaves is precisely the set L.

(c)A set of nodesLV , and you must find a spanning tree such that its set of leaves is included in the set L.

(d)An integer k, and you must find a spanning tree withk or fewer leaves.

(e)An integer k, and you must find a spanning tree withk or more leaves.

(f)An integer k, and you must find a spanning tree with exactlyk leaves.

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