nondeterministic polynomial time
nondeterministic polynomial time
(complexity)NP is obviously a superset of P (polynomial time problemssolvable by a deterministic Turing Machine in polynomial time) since a deterministic algorithm can be considered as adegenerate form of nondeterministic algorithm. The questionthen arises: is NP equal to P? I.e. can every problem in NPactually be solved in polynomial time? Everyone's first guessis "no", but no one has managed to prove this; and some veryclever people think the answer is "yes".
If a problem A is in NP and a polynomial time algorithm for Acould also be used to solve problem B in polynomial time, thenB is also in NP.
See also Co-NP, NP-complete.