/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q6E On page 266聽we saw that 3SAT聽... [FREE SOLUTION] | 91影视

91影视

On page 266we saw that 3SATremainsNP-complete even when restricted to formulas in which each literal appears at most twice.

(a)Show that if each literal appears at mostonce,then the problem is solvable in polynomial time.

(b)Show that INDEPENDENT SET remains NP-complete even in the special case when all the nodes in the graph have degree at most 4.

Short Answer

Expert verified

(a)This problem is solved in a polynomial time. Hence, the given statement has been proved.

(b)The given statement has been proved.

Step by step solution

01

Define 3-SAT

3-SAT is an abbreviation for 3-satisfiability, which is the Boolean satisfiability problem where each clause contains 3 literals or variables.

02

Prove the given problem is solvable in polynomial time

(a)

Consider the information: 3-SAT is an abbreviation for 3-satisfiability, which is the Boolean satisfiability problem where each clause contains 3 literals or variables.

Proof:

If in the 3SAT problem each literal seems at most once, then this is classified into these following cases for literals l and :

If l seems in claused , then set the value of the literal l=true and ignore d.

If only seems in clause d, then set the value of the literal role="math" localid="1658140114740" l=false and ignore d.

If and l both seem in clause d only, then l is either true or false or ignore d.

If and l both seem in two different clauses, then take out the literal l and then combine the left. After that set the value of literal l when required.

If l and are the only literals that seem in two clauses, that means it is not satisfiable. Thus, by applying this, eliminate each literal in linear time.

Therefore, this problem is solved in a polynomial time. Hence, the given statement has been proved.

03

Prove that INDEPENDENT SET remains NP Complete

(b)

Consider the information: In an independent set, there are no edges that are adjacent to each other. There is no common vertex also between the two edges. There are no vertices that are adjacent to each other. There is no common edge also between the two vertices. Proof: In the process of reducing the 3SAT problem into an independent set, if each variable seems at most twice, then any vertices鈥 degree cannot be greater than 4. It means the 3SAT problem remains NP-Complete in the condition where each literal appears at most 2 times. Therefore, the Independent Set also remains NP-Complete in the condition when each node has the degree at most 4.

Hence, 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 91影视!

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

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.

Akiteis a graph on an even number of vertices, say 2n, in which of the vertices form a clique and the remaining vertices are connected in a 鈥渢ail鈥 that consists of a path joined to one of the vertices of the clique. Given a graph and a goal , the KITE problem asks for a subgraph which is a kite and which contains 2g nodes. Prove that KITE is NP-complete.

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

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.

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.