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

Show that the following problem is NP-complete.

MAXIMUM COMMON SUBGRAPHInput: Two graphs G1=(V1,E1)and G2=(V2,E2); a budget b.Output: Two set of nodes V1'V1and V2'V2whose deletion leaves at leastb nodes in each graph, and makes the two graphs identical.

Short Answer

Expert verified

The MAXIMUM COMMON SUBGRAPH is NP-complete.

Step by step solution

01

Explain NP-Complete

A problem that has no significant optimal solution is denoted as NP-hard. For such problems, the significant solutions can be found is called NP-Complete.

02

Show that the given problem is NP-Complete

Consider that the maximum independent set problem is reduced to the maximum common subgraph problem.

Consider the unique graphGV,E of size d. Let,G1=GV,E andG2=V,ϕ have the same vertex set asG but the edge set is empty.

Each vertex is independent of each other, soG1 andG2 have a subgraph in common in size d. The graphs are identical to each other if the vertices are deleted.

Therefore, the set of nodes V1'V1andV2'V2 deletion leaves at nodes makes the two graphs identical is proved and it is NP-complete.

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

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.

Show that if P=NP then the RSA cryptosystem (Section 1.4.2) can be broken in polynomial time.

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.

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?

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