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

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

Consider a special case of 3SAT in which all clauses have exactly three literals, and each variable appears exactly three times. Show that this problem can be solved in polynomial time. (Hint: create a bipartite graph with clauses on the left, variables on the right, and edges whenever a variable appears in a clause. Use Exercise 7.30 to show that this graph has a matching.)

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.

Search versus decision. Suppose you have a procedure which runs in polynomial time and tells you whether or not a graph has a Rudrata path. Show that you can use it to develop a polynomial-time algorithm for RUDRATA PATH (which returns the actual path, if it exists).

Question: In an undirected graph G=(V,E), we say DVis a dominating set if every vV is either in D or adjacent to at least one member of D. In the DOMINATING SET problem, the input is a graph and a budget , and the aim is to find a dominating set in the graph of size at most , if one exists. Prove that this problem is NP-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.

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