Professional Documents
Culture Documents
Day-38 30april2021 UNIT-5 NP Complete Class
Day-38 30april2021 UNIT-5 NP Complete Class
Day-38 30april2021 UNIT-5 NP Complete Class
NP
P
P vs NP
NP Complete
A Problem L is NP-Complete if and only if L
is NP- Hard and LεNP
A Problem L is NP hard if and only if
satisfiability reduces to L .
Reduction
Let L1 and L2 be problems.
Problem L1 reduces to L2 if and only if there
is a way to solve L1 by a deterministic
polynomial time algorithm using a
deterministic algorithm that solves L2 in
polynomial time.
Reduction
SAT
Note
NP is the class of decision problems that can be
solved by non-deterministic polynomial algorithms.
Problems that cannot be solved in polynomial time
are known as intractable.
the time complexity of Horner's rule in polynomial
evaluation is O(n)
If a problem Z is in NP Class. Then If Z is NP-hard,
then it is NP-complete.
Raju and Sonu have been asked to show that a
certain problem W is NP-complete. Raju shows a
polynomial time reduction from the 3-SAT problem
to W, and Sonu shows a polynomial time reduction
from W to 3-SAT then W is NP-complete
?
drsuniljoshi.cse@satiengg.in
Thank You