Lecture Notes for CS 512, Algorithm Design
15 March 1999, P and NP Problems
- the greedy heirs problem.
- the estate { x0, x1, ... xn }, item i costs c(xi)
- evenly divide the estate between dick and jane
- a recursive solution on an n-1 element set
- an exponential running time - can we do better
- the set partition problem.
- tractable vs. intractable problems
- polynomial problems are tractable - even for large exponent
- non-polynomial problems are intractable
- can intractable problems be made tractable - do they have polynomial
solutions
- nobody knows, but the thinking is they can't and they don't
- the nondeterministic model of computation
- the choice operator - either take them all, or take the correct one
- polynomial down to a suspected solution, polynomial up to check the
solution
- NP problems
- problems and instances, decision problems - inputs and outputs;
particular inputs and outputs, yes-no answers
- reductions
- problem instance reductions, or translations
- polynomial
- a solution in one is a solution in the other, in both directions
- algorithms in the target language become algorithms in the source
language
- polynomially equivalent problems, transitive reductions
- reductions and the lower bound
- np structure
- np-hard problems - at least as hard as any np problem
- np-complete problems - it is an np problem
- use transitivity to translate an np-complete problem to the new
problem
- cook's theorem - the satisfiability problem (SAT) is np-complete
- some reductions
- vertex cover to clique
- compliment graphs
- k clique means |V| - k compliment cover
- k compliment cover means |V| - k clique
- dominating set to vertex cover
- triangulate edges
- dominating set to triangulated cover set
- triangulated cover set to dominating set
This page last modified on 21 March 2000.