1
  1. if A be an NP-complete problem, and if B be an NP-hard problem. If A is polynomial time solvable then is B is polynomial time solvable?

  2. on the contrary, if A be an NP-complete problem, and B be an NP-hard problem. If A is polynomial time solvable then is B is polynomial time solvable?

My intuition is, (which may be very wrong), for (1) there are some problems, which are not in NP but are still NP Hard. In that case, wouldn't that make the first statement false? Since a basic requirement for a problem to be in NPC is that the problem should belong to NP Hard first.

Joe
  • 11
  • 2

1 Answers1

1

When you hear B is NP-hard, you can consider B being undecidable. If P = NP, then B is still undecidable.

If A is NP-complete and B is NP-hard, and B polynomial time solvable, then, yes, recall:

  • if X is NP-hard, then for every problem Y in NP, there exists a polynomial time reduction from Y to X.

It follows that then A must be polynomial time solvable too.

Pål GD
  • 16,115
  • 2
  • 41
  • 65