recategorized by
11,464 views
14 14 votes

Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?

5 Answers

Best answer
22 22 votes

Clique is in NPC. By definition of NPC, all NP problems can be reduced to Clique in polynomial time. So, if clique can be solved in polynomial time, any NP problem can also be solved in polynomial time making P=NP and hence P=NP=NPC. 

http://gatecse.in/wiki/NP,_NP_Complete,_NP_Hard

selected by
1 1 vote

NPC should be a subset of P=NP.

If P=NP=NPC then that means that all P and NP problems are NP Complete and thus NP Hard. This means that every P and NP problem is polynomial time reducible to every other problem. This is not true.

Hence C.

0 0 votes

P is not a subset of NPC, and this is unconditionally true.

Reason: if P=NP, every NP-C problem is solvable in polynomial time, hence

1. NPC is a subset of P

For P = NPC, we need to prove that P is a subset of NP-C. In other words, an NP-C problem can be reduced to every deterministically polynomial time problem.

i.e A <= B, for all B belongs to P, and any A that belongs to NP-C

Proving the above statement would mean that every problem in P is at least as hard as every other problem in P (and NP, since P=NP). Then, by definition, every problem in P is an NPC problem.

Now say I pick A to be an NP-C problem namely the Hamiltonian Path problem, according to the question I have a way of solving this in deterministically polynomial time. So for a given graph, I solve the problem in polynomial time. For a "yes" output to the Hamiltonian path problem, I create a "yes" input to a P problem (for eg. an even input for the P problem "Is the input number even?") and for a "no" output to the Hamiltonian path problem, I create a "no" input to a problem P. A "yes" or "no" input here means an input which will always output "yes" or "no" respectively.

This effectively means that a reduction that reduces an NP complete problem to every other P problem exists, except for only two languages in P given below:

i) Language that accepts everything.

ii) Language that accepts nothing.

(i) has no "no" answer and (ii) has no "yes" answer so the reduction described above is not valid for these 2 cases.

This means,

2. P- {Sigma*, Phi} is a subset of NPC

and therefore P=NPC cannot be followed from 1 and 2 as other answers suggest, the only conclusion is:

P-{Sigma*, Phi} = NPC

Answer is C


https://cs.stackexchange.com/questions/94201/if-p-np-why-is-p-a-subset-of-npc

Answer:
Position:
Show:

Related questions

78 78 votes
11 answers 11 answers
33.1k
33.1k views
go_editor asked Sep 28, 2014
33,125 views
Consider a $6$-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is exec...
11 11 votes
3 answers 3 answers
5.3k
5.3k views
go_editor asked Sep 28, 2014
5,263 views
Consider the decision problem $2CNFSAT$ defined as follows:$$\left\{ \phi \mid \phi \text{ is a satisfiable propositional formula in CNF with at most two literals per cla...
20 20 votes
5 answers 5 answers
9.3k
9.3k views
go_editor asked Sep 26, 2014
9,292 views
Which of the following are used to generate a message digest by the network security protocols?RSASHA-$1$DESMD5I and III onlyII and III onlyII and IV onlyIII and IV only
14 14 votes
6 answers 6 answers
21.1k
21.1k views
go_editor asked Sep 26, 2014
21,126 views
Consider a token ring network with a length of 2 km having 10 stations including a monitoring station. The propagation speed of the signal is $2 \times10^8m/s$ and the to...