Exam 3 - NP Reductions Definitions Flashcards
Polynomial runtime
O(n^k) for some constant k
Exponential runtime
O(k^n) for some k > 1
Pseudopolynomial runtime
Polynomial to the magnitude of the input, but exponential to the size of the input
NP complexity class
Nondeterministic polynomial class of all search/decision problems
NP problems have solutions that can be verified in ____ time
polynomial
P complexity class
Class of search problems that are solvable in polynomial time
NP-completeness
NP problem that other NP-complete problems can be reduced to in polynomial time
NP-Hard
problems that are at least as hard as NP class problems
Are NP-hard problems in class NP?
not necessarily
True/False : P is at least a subset of NP
True
Do we know if knapsack is in NP?
No, but we also don’t know that it isn’t