CSC 305 VTL Lecture 05 2021
CSC 305 VTL Lecture 05 2021
1
Polynomial Order of Algorithms
P - Problems that can be solved in polynomial time.
P- Polynomial time solving . Problems which can be solved in polynomial time, which
take time like O(n), O(n2), O(n3). Eg: finding maximum element in an array or to check
whether a string is palindrome or not. so there are many problems which can be solved in
polynomial time.
It can be shown that every NP problem can be reduced to 3-SAT. The proof of this is technical and
requires use of the technical definition of NP (based on non-deterministic Turing machines). This is
known as Cook's theorem.
What makes NP-complete problems important is that if a deterministic polynomial time algorithm can
be found to solve one of them, every NP problem is solvable in polynomial time (one problem to rule
them all).