The Gateway to Computer Science Excellence

First time here? Checkout the FAQ!

x

+16 votes

Assuming $P \neq NP$, which of the following is **TRUE**?

- $NP- \ complete = NP$
- $NP-complete \cap P = \phi$
- $NP-hard = NP$
- $P = NP-complete$

+27 votes

Best answer

Answer is (**B**) $NP-complete \cap P = \phi$

Since, $P \neq NP$, there is at least one problem in $NP$, which is harder than all $P$ problems. Lets take the hardest such problem, say $X$. Since, $P \neq NP, X \notin P $ .

Now, by definition, $NP-complete$ problems are the hardest problems in $NP$ and so $X$ problem is in $NP-complete$. And being in $NP$, $X$ can be reduced to all problems in $NP-complete$, making any other $NP-complete$ problem as $hard$ as $X$. So, since $X \notin P$, none of the other $NP-complete$ problems also cannot be in $P$.

+11 votes

Every problem in P is also in NP.

Given that P != NP, it means that there exists a problem which is in NP and not in P.

**Every NP-Complete problem has the property that it is in NP and if it is in P then every problem in NP is also in P.**

Now suppose if NP-Complete ∩ P is non-empty this implies there exists a problem which is NP-Complete as well as in P.

But then from the definition of NP-Complete, every problem in NP must be in P.

That is NP = P, which is contradicting the given condition.

Hence our only assumption: "NP-Complete ∩ P is non-empty" must be wrong.

So NP-Complete & P must be disjoint if P!=NP.

+6 votes

This pic clears this question.

(a) As NP complete problem are hardest problem in NP class.Every NP complete problem is in NP, but vice versa is not true. Moreover NP Complete problem also should be satisfy NP hard property. So, all NP problem shouldnot reduced to NP Complete.

A fast solution to any NP-Complete problem would mean that as long as you can *verify* proposed solutions to a problem you would *never* need to search through a substantial fraction of the search space to find solutions; there would *always* be a faster way. Therefore most mathematician thought there is no solution faster than NP complete (Which cannot be a case for NP)

(b) If a problem is in NP Complete then it must be in NP . Means if X is a NP Complete problem , then X must be in NP. Here NP!=P , that is why $$NPComplete\cap P=\phi$$

(c) NP Hard=NP

What does NP-hard mean? A lot of times you can solve a problem by reducing it to a different problem. I can reduce Problem B to Problem A if, given a solution to Problem A, I can easily construct a solution to Problem B. (In this case, "easily" means "in polynomial time.")

Only NP complete problem polynomial time reducible to NP Hard problem. But all NP problem not in NPC. So, all NP problem cannot be reduced to NP Hard .http://gatecse.in/p-np-np-complete-np-hard/

(d) NP Complete problem is the set of problems, for which NP problems can be reduced to NP Complete.And we know . If NP problem can be solved quickly, then NP Complete problem also can solved quickly.And according to the diagram sometimes P=NP and sometimes P!=NP. NP complete is a subset of NP. So, P=NP Complete is not correct equation.

- All categories
- General Aptitude 1.6k
- Engineering Mathematics 7.3k
- Digital Logic 2.7k
- Programming & DS 4.9k
- Algorithms 4.2k
- Theory of Computation 5.4k
- Compiler Design 2.1k
- Databases 4k
- CO & Architecture 3.5k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.5k
- Admissions 570
- Exam Queries 566
- Tier 1 Placement Questions 23
- Job Queries 70
- Projects 18

48,691 questions

52,776 answers

183,436 comments

68,389 users