Difference between NP-hard and NP-complete problems

Let us take two problems A and B both are NP problems.
  • Reducibility - If we can convert one instance of a problem A into problem B (NP problem) then it means that A is reducible to B.
  • NP-hard - Now suppose we found that A is reducible to B, then it means that B is at least as hard as A.
  • NP-Complete - The group of problems which are both in NP and NP-hard are known as NP-Complete problem.
P is set of problems that can be solved by a deterministic Turing machine in Polynomial time.
NP is set of decision problems that can be solved by a Non-deterministic Turing Machine in Polynomial time. P is subset of NP

Comments

Post a Comment

Popular posts from this blog

Array

Asymptotic notations