Lecture Notes for CS 512, Algorithm Design
19 October 1999, P and NP Problems
These are provisional lecture notes, expect changes.
- the pepsi siting problem
- put a pizza hut, pepsi, or frito-lay warehouse in each town, with no
two directly adjacent towns having the same warehouse
- a recursive solution on an n-1 graph
- an exponential running time - can we do better
- the three-colorable graph 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 26 October 1999.