• edited by
11,722 views
17 17 votes

Ram and Shyam have been asked to show that a certain problem $\Pi$ is $\text{NP-complete}.$ Ram shows a polynomial time reduction from the $\text{3-SAT}$ problem to $\Pi$, and Shyam shows a polynomial time reduction from $\Pi$ to $\text{3-SAT.}$ Which of the following can be inferred from these reductions?

  1. $\Pi$ is NP-hard but not NP-complete

  2. $\Pi$ is in NP, but is not NP-complete

  3. $\Pi$ is NP-complete

  4. $\Pi$ is neither NP-hard, nor in NP

3 Answers

Best answer
15 15 votes
C. For a problem to be NP-Complete, it must be NP-hard and it must also be in NP.

Ram's reduction shows that $\Pi$ is NP hard because it must be at least as hard as $3$-SAT which is a known NP-Complete problem. Here, $\Pi$ need not be NP-Complete.

Now, Shyam's reduction shows that $3$-SAT problem is at least as hard as $\Pi$ or equivalently $\Pi$ is not harder than $3$-SAT. Since $3$-SAT is in NP, $\Pi$ must also be in NP.

Thus, $\Pi$ is NP-hard and also in NP $\implies$ $\Pi$ is NP-Complete.
• edited by
1 1 vote

π is NP-C. 

0 0 votes
ans is A as  second condition doesn't imply that II is in NP same way as NP problem reduced to NP hard doesn't imply that  problem is NP hard
Answer:
Position:
Show:

Related questions

61 61 votes
5 answers 5 answers
14.8k
14.8k views
Kathleen asked Sep 17, 2014
14,821 views
A program consists of two modules executed sequentially. Let $f_1(t)$ and $f_2(t)$ respectively denote the probability density functions of time taken to execute the two ...
2 2 votes
2 2 answers
7.8k
7.8k views
Kathleen asked Sep 17, 2014
7,781 views
Consider the following class definitions in a hypothetical Object Oriented language that supports inheritance and uses dynamic binding. The language should not be assumed...
0 0 votes
0 0 answers
2.1k
2.1k views
Kathleen asked Sep 17, 2014
2,050 views
A piecewise linear function $f(x)$ is plotted using thick solid lines in the figure below (the plot is drawn to scale).If we use the Newton-Raphson method to find the roo...
22 22 votes
6 answers 6 answers
24.2k
24.2k views
Rucha Shelke asked Sep 17, 2014
24,169 views
Let S be an NP-complete problem and Q and R be two other problems not known to be in NP. Q is polynomial time reducible to S and S is polynomial-time reducible to R. Whic...