/*! 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} Q40P Show that if  P=NP , a polynomi... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Show that if P=NP , a polynomial time algorithm exists that takes an undirected graph as input and finds a largest clique contained in that graph. (See the note in Problem 7.38.)

Short Answer

Expert verified

It can be shown that the if P=NP, a polynomial time algorithm exists that takes an undirected graph as input. A largest clique contained in the graph can be found.

Step by step solution

01

Step-1:Explain Polynomial Time

If the running time of an algorithm is upper constrained by a polynomial expression in the size of the method's input, the algorithm is said to be polynomial time.

02

Step-2: Show that if P=NP   , a polynomial time algorithm exists that takes an undirected graph as input and find largest clique.

Consider that P = NP, a k-clique is a clique that have k-nodes. Usually, a clique is in NP.

So, if P=NP then clique is in P.

Therefore, if P=NP , then clique is recognizable in polynomial time.

If P=NP, then °ä³¢±õ²Ï±«·¡âˆˆP , and for each value of k , test whether Gincludes a clique of size k in polynomial time.

Then find the size t of a greatest clique in G in polynomial time by checking if G has a clique of each size from 1 to the number of nodes in G.

Find a clique with t nodes as follows after knowing t .

Remove each node ofG and determine the largest clique size that results.

Replace x and move on to the next node if the resultant size lowers.

If the final size is still , delete permanently and move on to the next node. When all nodes have been analysed in this way, the leftover nodes form a t -clique.

Therefore, the largest clique from the graph has been obtained.

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

Study anywhere. Anytime. Across all devices.