Wa0001.
Wa0001.
1. NP-Hard
2. NP-Complete
NP Complete Problem: A problem that is NP-Complete can solved in polynomial time
if and only if (iff) all other NP-Complete problems can also be solved in polynomial time.
NP-Hard: Problem can be solved in polynomial time then all NP-Complete problems can
be solved in polynomial time.
All NP-Complete problems are NP-Hard but some NP-Hard problems are not know to be NP-
Complete.
Nondeterministic Algorithms:
Algorithms with the property that the result of every operation is uniquely defined are
termed as deterministic algorithms. Such algorithms agree with the way programs are
executed on a computer.
Algorithms which contain operations whose outcomes are not uniquely defined but
are limited to specified set of possibilities. Such algorithms are called
nondeterministic algorithms.
The machine executing such operations is allowed to choose any one of these
outcomes subject to a termination condition to be defined later.
sful completion
P
polynomial time.
is the set of all decision problems solvable by nondeterministic algorithms
in polynomial time.
If there any single problem in NP, such that if we showed it to be in ‘P’ then that
would imply that P=NP.
This implies that, if we have a polynomial time algorithm for L 2, Then we can solve L1 in
polynomial time.
L1 α L2 and L2 α L3 then L1 α L3
q(p3(n)log n)).
If satisfiability is ‘p’, then ‘q(m)’ is a polynomial function of ‘m’ and the
complexity of ‘Z’ becomes ‘O(r(n))’ for some polynomial ‘r()’.