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

In the NODE-DISJOINT PATHS problem, the input is an undirected graph in which some vertices have been specially marked: a certain number of “sources” s1,s2,,sk and an equal number of “destinations” t1,t2,,tk. The goal is to find k node-disjoint paths (that is, paths which have no nodes in common) where the ith path goes from si to ti. Show that this problem is NP-complete.Here is a sequence of progressively stronger hints.

  1. Reduce from 3SAT .
  2. For a 3SAT formula with m clauses and n variables, use k=m+n sources and destinations. Introduce one source/destination pair (sx,tx)for each variable x , and one source/destination pair (sc,tc) for each clause c .
  3. For each 3SAT clause, introducenew intermediate vertices, one for each literal occurring in that clause and one for its complement.

Notice that if the path from sc to tc goes through some intermediate vertex representing, say, an occurrence of variable x, then no other path can go through that vertex. What vertex would you like the other path to be forced to go through instead?

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

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.

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.

Proving NP-completeness by generalization. For each of the problems below, prove that it is NP-complete by showing that it is a generalization of some NP-complete problem we have seen in this chapter.

  1. SUBGRAPH ISOMORPHISM: Given as input two undirected graphsG and H, determine whetherG is a subgraph of H (that is, whether by deleting certain vertices and edges ofH we obtain a graph that is, up to renaming of vertices, identical toG ), and if so, return the corresponding mapping ofV(G) intoV(H) .
  2. LONGEST PATH: Given a graph role="math" localid="1658141805147" Gand an integerg find inG a simple path of lengthg .
  3. MAX SAT: Given a CNF formula and an integer g, find a truth assignment that satisfies at least gclauses.
  4. DENSE SUBGRAPH: Given a graph and two integersa and b, find a set of a vertices ofG such that there are at leastb edges between them.
  5. SPARSE SUBGRAPH: Given a graph and two integersa andb , find a set of a vertices ofG such that there are at most bedges between them.
  6. SET COVER. (This problem generalizes two knownNP-complete problems.)
  7. RELIABLE NETWORK: We are given twon×n matrices, a distance matrixdij and a connectivity requirement matrixrij , as well as a budgetb ; we must find a graph G=({1,2,.....,n},E)such that (1) the total cost of all edges isb or less and (2) between any two distinct verticesi andj there arerij vertex-disjoint paths.
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