University of Virginia, Department of Computer Science
CS200: Computer Science, Spring 2004

Notes: Wednesday 21 April 2004
Schedule

Notes

What is the difference between a tractable and intractable problem?






What does it mean for a problem to be NP-complete?






What are the characteristics of NP-complete problems?










Problem Classification Arguments
To show a problem is decidable/in NP/in P, you need to show it is easy enough to be solved with a procedure in that class:

To show a problem is undecidable or NP-complete, you need to show it is as hard as a problem you already know is in that class:

How would you convince someone the smiley puzzle is NP-complete?







How would it impact medicine if you discovered a Θ(n7) procedure that solves the smiley puzzle?





How would it impact electronic commerce if you discovered a Θ(n7) procedure that solves the smiley puzzle?





How would it impact electronic commerce if you discovered a Θ(5n) procedure that solves the smiley puzzle?





Is the smiley puzzle harder than the Cracker Barrel Peg Board puzzle?





Links

P vs. NP, Clay Mathematics Institute, Millennium Prize Problem.
Minesweeper, Ian Stewart. (The Minesweeper Consistency Problem is NP-Complete!)
Phylogeny (CS201J Problem Set)

Christopher Frost, Michael Peck, David Evans. Pancakes, Puzzles, and Polynomials: Cracking the Cracker Barrel. ACM Special Interest Group on Algorithms and Computation Theory (SIGACT) News, March 2004. This paper (attached) shows how to prove a variant of the pegboard puzzle is NP-Complete by showing that if you could solve the pegboard puzzle in polynomial time you could also solve 3SAT. After publishing it, we learned from a reader that there is also a proof that the original generalized pegboard puzzle (Hi-Q) is also NP-Complete. You can see slides from Chris and Mike's URDS presentation here: http://www.cs.virginia.edu/pegboard/cb-urds.ppt.

cs200-staff@cs.virginia.edu
Using these Materials