Professional Documents
Culture Documents
AISHWARYA
Introduction
(Polynomial Time): The class of decision problems for which a solution can be
verified quickly (in polynomial time) once it is provided.
NP (Nondeterministic Polynomial Time): The class of decision problems for
which a solution can be guessed and checked quickly (in polynomial time) using
a nondeterministic Turing machine. In NP, finding the solution may not be
quick, but verifying it is.
Solvable vs Unsolvable Problems
Problem taxonomy
Intractable problems are problems for which there exist no efficient algorithms
to solve them.
Most intractable problems have an algorithm – the same algorithm – that
provides a solution, and that algorithm is the brute-force search.
This algorithm, however, does not provide an efficient solution and is, therefore,
not feasible for computation with anything more than the smallest input.
Example : TSP, GRAPH COLORING
Tractable Problem
Problem for which there is a polynomial time algorithm are called tractable.
A problem is assigned to the P represent the class of problems which can be
solved by a deterministic Polynomial algorithm.
P Problem
Algorithm Nsearch(A,n,key)
{
j=choice();
if(key=A[j])
{ write(j); success();}
Write(0);
Failure();
}
P is Deterministic Polynomial time taking algorithm
NP is Non Deterministic Polynomial Time Taking Algorithm
Deterministic is subset of Non Deterministic Algorithm
Satisfiability Problem: Base Problem
Reducibility
Randomization